diff --git a/tools/eject_cd.sh b/tools/eject_cd.sh index 7bc7a22..3354d40 100755 --- a/tools/eject_cd.sh +++ b/tools/eject_cd.sh @@ -1,11 +1,11 @@ #! /bin/sh # -# eject_cd.sh - QiLinux eject CD script (called by install1.sh) +# eject_cd.sh - openmamba livecd eject CD and halt/reboot script # -# Copyright (c) 2003-2004 by Silvan Calarco +# Copyright (c) 2003-2013 by Silvan Calarco # Copyright (c) 2003-2004 by Davide Madrisan # FIXME: support SCSI cdroms CDROMDEV=`cat /etc/mtab | sed -n '/ \/cdrom /{h;s/ .*//p}'` # eject live CDROM -cdrecord -eject dev=ATAPI:$CDROMDEV 1>/dev/null 2>/dev/null +eject -m $CDROMDEV