Subversion Repositories livecd

Rev

Rev 93 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 93 Rev 118
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
-
 
101
mounts=$( mount 2>/dev/null | grep -v proc )
-
 
102
if [ "$mounts" != "" ]; then
-
 
103
    echo; echo "It seems that you do not run in chroot."
-
 
104
    echo -n "Do you really want to continue (y/N)? "
-
 
105
    read -n 1 key
-
 
106
    [ "$key" != "y" ] && exit
-
 
107
fi
-
 
108
 
100
### do not run without psi option on a PSI installation
109
### do not run without psi option on a PSI installation
101
if [ -e /etc/sysconfig/cfengine ] && [ ! $PSI ]; then
110
if [ -e /etc/sysconfig/cfengine ] && [ ! $PSI ]; then
102
    echo "I guess this is a PSI installation, please use option '-psi'"; echo
111
    echo "I guess this is a PSI installation, please use option '-psi'"; echo
103
    exit
112
    exit
104
fi
113
fi