From d4a20873431dc5575e7961b3e71493bb111dbe36 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Mon, 12 Jan 2009 23:27:44 -0600 Subject: print boot device and eject device on shutdown. --- abs/core-testing/linhes-live/PKGBUILD | 2 +- abs/core-testing/linhes-live/etc/live-shutdown | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/abs/core-testing/linhes-live/PKGBUILD b/abs/core-testing/linhes-live/PKGBUILD index b0da16a..29de17e 100644 --- a/abs/core-testing/linhes-live/PKGBUILD +++ b/abs/core-testing/linhes-live/PKGBUILD @@ -2,7 +2,7 @@ # 2008.09.25 pkgname=linhes-live pkgver=5.3.3 -pkgrel=15 +pkgrel=17 pkgdesc="LinHes compulsory components for the Live System." url="http://KnoppMyth.net" 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" -- cgit v0.12