Subversion Repositories livecd

Rev

Rev 166 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 166 Rev 168
Line 228... Line 228...
228
NOEJECT=$( cmdline_parameter noeject )
228
NOEJECT=$( cmdline_parameter noeject )
229
 
229
 
230
# eject CDROM 
230
# eject CDROM 
231
# if CDROM is not on NFS and if noeject is not set
231
# if CDROM is not on NFS and if noeject is not set
232
if [ ! $NFSROOT ] && [ ! $NOEJECT ]; then
232
if [ ! $NFSROOT ] && [ ! $NOEJECT ]; then
-
 
233
    CDROM_DEV=$( grep /$MOUNTDIR/live/livecd /proc/mounts | awk '{print $1}' )
233
    echo -n "Ejecting CD-ROM ... "
234
    echo -n "Ejecting CD-ROM $CDROM_DEV ... "
234
    eject $( grep /$MOUNTDIR/live/livecd /proc/mounts | awk '{print $1}' )
235
    eject $CDROM_DEV
235
    echo
236
    echo
236
fi
237
fi
237
 
238
 
238
if [ "${command##*/}" = "reboot" ]; then
239
if [ "${command##*/}" = "reboot" ]; then
239
  echo "Rebooting."; sleep 1
240
  echo "Rebooting."; sleep 1