Subversion Repositories livecd

Rev

Rev 118 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 118 Rev 119
Line 95... Line 95...
95
. livecd.conf
95
. livecd.conf
96
 
96
 
97
### test input
97
### test input
98
[ ! $SL ] && usage 
98
[ ! $SL ] && usage 
99
 
99
 
100
### give warning if not in chroot
100
### print warning, if not in chroot
101
mounts=$( mount 2>/dev/null | grep -v proc )
101
mounts=$( mount 2>/dev/null | grep -v proc )
102
if [ "$mounts" != "" ]; then
102
if [ "$mounts" != "" ]; then
103
    echo; echo "It seems that you do not run in chroot."
103
    echo; echo "It seems that you do not build in chroot."
104
    echo -n "Do you really want to continue (y/N)? "
104
    echo -n "Do you really want to continue (y/N)? "
105
    read -n 1 key
105
    read -n 1 key
106
    [ "$key" != "y" ] && exit
106
    [ "$key" != "y" ] && exit
107
fi
107
fi
108
 
108