diff options
author | James Meyer <james.meyer@operamail.com> | 2009-01-13 05:27:44 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-01-13 05:27:44 (GMT) |
commit | d4a20873431dc5575e7961b3e71493bb111dbe36 (patch) | |
tree | 0579a079a5f01ef67bd49b74008c80736606849d /abs/core-testing/linhes-live/etc | |
parent | 72c6f7491c5986c68d12cfd66e276930c50b04fc (diff) | |
download | linhes_pkgbuild-d4a20873431dc5575e7961b3e71493bb111dbe36.zip linhes_pkgbuild-d4a20873431dc5575e7961b3e71493bb111dbe36.tar.gz linhes_pkgbuild-d4a20873431dc5575e7961b3e71493bb111dbe36.tar.bz2 |
print boot device and eject device on shutdown.
Diffstat (limited to 'abs/core-testing/linhes-live/etc')
-rw-r--r-- | abs/core-testing/linhes-live/etc/live-shutdown | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/abs/core-testing/linhes-live/etc/live-shutdown b/abs/core-testing/linhes-live/etc/live-shutdown index b105975..b6a8378 100644 --- a/abs/core-testing/linhes-live/etc/live-shutdown +++ b/abs/core-testing/linhes-live/etc/live-shutdown @@ -38,6 +38,7 @@ f_swapoff () f_remountro () { bootdev=`cat /.livesys/bootdevice` + echo "Boot device was $bootdev" #bootdev=`basename $bootdev` for i in `ls /dev/cd/*` do @@ -45,15 +46,16 @@ f_remountro () if [ x$cdrom = x$bootdev ] then ejectdev=$cdrom + break fi - break + done lspci |grep -q VMware if [ ! $? = 0 ] then if [ -n "${ejectdev}" ] then - echo "Ejecting CD" + echo "Ejecting CD $ejectdev" eject ${ejectdev} echo "========================================" echo "Tray will retract after 10 seconds" |