summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/linhes-live/etc/live-shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/linhes-live/etc/live-shutdown')
-rw-r--r--abs/core-testing/linhes-live/etc/live-shutdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/abs/core-testing/linhes-live/etc/live-shutdown b/abs/core-testing/linhes-live/etc/live-shutdown
index 6e12d22..b105975 100644
--- a/abs/core-testing/linhes-live/etc/live-shutdown
+++ b/abs/core-testing/linhes-live/etc/live-shutdown
@@ -38,10 +38,10 @@ f_swapoff ()
f_remountro ()
{
bootdev=`cat /.livesys/bootdevice`
- bootdev=`basename $bootdev`
- for i in `ls -H /dev/cd/*`
+ #bootdev=`basename $bootdev`
+ for i in `ls /dev/cd/*`
do
- cdrom=`basename $i|cut -d- -f2`
+ cdrom=`readlink -f $i`
if [ x$cdrom = x$bootdev ]
then
ejectdev=$cdrom