summaryrefslogtreecommitdiffstats
path: root/build_tools/archiso
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2013-01-10 22:21:45 (GMT)
committerJames Meyer <james.meyer@operamail.com>2013-01-10 22:21:45 (GMT)
commita3b30a4b4bb355ea333e6312534cf535faebb0e0 (patch)
tree410be12d152b33cb22accb8fb72873d9d98382e2 /build_tools/archiso
parente00dd4195f18764b55f922e03f4aa47be6dabe01 (diff)
downloadlinhes_dev-a3b30a4b4bb355ea333e6312534cf535faebb0e0.zip
Text cleanup for ejecting the CDROM.
If the boot medium was not a CDROM it only printed two lines and that just looked odd.
Diffstat (limited to 'build_tools/archiso')
-rw-r--r--build_tools/archiso/archiso/archiso_shutdown4
1 files changed, 3 insertions, 1 deletions
diff --git a/build_tools/archiso/archiso/archiso_shutdown b/build_tools/archiso/archiso/archiso_shutdown
index e61b7f9..0708028 100644
--- a/build_tools/archiso/archiso/archiso_shutdown
+++ b/build_tools/archiso/archiso/archiso_shutdown
@@ -35,7 +35,9 @@ fi
#JM
#This is where the reboot would go
+
echo "------------------------"
+echo "Checking if CDROM needs to be ejected..."
#bootdev is created in rc.local on startup
bootdev=$( cat /bootdev.txt )
if [ -f /proc/sys/dev/cdrom/info ]
@@ -52,7 +54,7 @@ then
do
if [ "/dev/${d}" = "${bootdev}" ]
then
- echo "Boot device is a cdrom, ejecting..."
+ echo " Boot device is a cdrom, ejecting..."
eject ${bootdev}
break
fi