Subversion Repositories livecd

Rev

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

Rev 159 Rev 164
Line 213... Line 213...
213
	fi
213
	fi
214
fi
214
fi
215
 
215
 
216
# ------------------ LiveCD -------------------------
216
# ------------------ LiveCD -------------------------
217
 
217
 
-
 
218
# dir of mounted live system: /$MOUNTDIR/live
-
 
219
MOUNTDIR=livecd
-
 
220
 
218
# eject CDROM (if CDROM is not on NFS)
221
# source functions of liblinuxlive
-
 
222
. /$MOUNTDIR/live/liblinuxlive
-
 
223
 
-
 
224
# root on NFS?
219
more /proc/cmdline | grep -q "nfsroot="
225
NFSROOT=$( cmdline_value nfsroot )
-
 
226
 
-
 
227
# noeject set?
-
 
228
NOEJECT=$( cmdline_parameter noeject )
-
 
229
 
-
 
230
# eject CDROM 
-
 
231
# if CDROM is not on NFS and if noeject is not set
220
if [ "$?" != "0" ]; then
232
if [ ! $NFSROOT ] && [ ! $NOEJECT ]; then
221
    echo "Ejecting CD-ROM ..."
233
    echo -n "Ejecting CD-ROM ... "
222
    # eject
-
 
223
    eject "/livecd/live`grep livecd/live/livecd /proc/mounts|awk '{print $1}'`"
234
    eject "/livecd/live`grep $MOUNTDIR/live/livecd /proc/mounts|awk '{print $1}'`"
224
    echo
235
    echo
225
fi
236
fi
226
 
237
 
227
if [ "${command##*/}" = "reboot" ]; then
238
if [ "${command##*/}" = "reboot" ]; then
228
  echo "Rebooting."; sleep 1
239
  echo "Rebooting."; sleep 1