eject_cd.sh: replace cdrecord with eject command
This commit is contained in:
parent
d242225809
commit
8626724e34
@ -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 <silvan.calarco@qilinux.it>
|
||||
# Copyright (c) 2003-2013 by Silvan Calarco <silvan.calarco@qilinux.it>
|
||||
# Copyright (c) 2003-2004 by Davide Madrisan <davide.madrisan@qilinux.it>
|
||||
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user