Subversion Repositories livecd

Rev

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

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