summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/linhes-live/etc
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2008-11-30 04:10:25 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2008-11-30 04:10:25 (GMT)
commitfba7ea15ad46f8655bf17ab4c1cc5a8228d39e1b (patch)
treec2773a141b0ae0cb084b53d2187c140b256a0508 /abs/core-testing/linhes-live/etc
parent528d2a3fd9ed560ab17345141bdb395f410dd607 (diff)
downloadlinhes_pkgbuild-fba7ea15ad46f8655bf17ab4c1cc5a8228d39e1b.zip
linhes_pkgbuild-fba7ea15ad46f8655bf17ab4c1cc5a8228d39e1b.tar.gz
linhes_pkgbuild-fba7ea15ad46f8655bf17ab4c1cc5a8228d39e1b.tar.bz2
Modified live-shutdown to preload commands so an eject will occur.
Diffstat (limited to 'abs/core-testing/linhes-live/etc')
-rw-r--r--abs/core-testing/linhes-live/etc/live-shutdown18
-rwxr-xr-xabs/core-testing/linhes-live/etc/rc.shutdown-live3
2 files changed, 14 insertions, 7 deletions
diff --git a/abs/core-testing/linhes-live/etc/live-shutdown b/abs/core-testing/linhes-live/etc/live-shutdown
index 807ec47..459d4f2 100644
--- a/abs/core-testing/linhes-live/etc/live-shutdown
+++ b/abs/core-testing/linhes-live/etc/live-shutdown
@@ -9,12 +9,12 @@ f_saveclock ()
f_swapoff ()
{
############################# Include session saving functions
- . /opt/linhes-live/session-save/shutdown2
- if [ -f /tmp/checkse ]; then
- . /tmp/checkse
- else
- checkse
- fi
+# . /opt/linhes-live/session-save/shutdown2
+# if [ -f /tmp/checkse ]; then
+# . /tmp/checkse
+# else
+# checkse
+# fi
if [ -n "${saving}" ] && ! session_save; then
echo
@@ -46,5 +46,11 @@ f_remountro ()
read junk
fi
}
+#Preloads these commands so we can eject the CD.
+#
+eject --help >/dev/null 2>&1
+halt --help >/dev/null 2>&1
+poweroff --help >/dev/null 2>&1
+reboot --help >/dev/null 2>&1
# End
diff --git a/abs/core-testing/linhes-live/etc/rc.shutdown-live b/abs/core-testing/linhes-live/etc/rc.shutdown-live
index 7fa97e6..896bae2 100755
--- a/abs/core-testing/linhes-live/etc/rc.shutdown-live
+++ b/abs/core-testing/linhes-live/etc/rc.shutdown-live
@@ -149,7 +149,8 @@ fi
#F Remount / ro
f_remountro
-
+#Eject the CD
+eject
# Power off or reboot
if [ "$RUNLEVEL" = "0" ]; then
printsep