summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/linhes-live/etc
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/linhes-live/etc')
-rw-r--r--abs/core-testing/linhes-live/etc/live-shutdown6
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"