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-shutdown50
1 files changed, 50 insertions, 0 deletions
diff --git a/abs/core-testing/linhes-live/etc/live-shutdown b/abs/core-testing/linhes-live/etc/live-shutdown
new file mode 100644
index 0000000..807ec47
--- /dev/null
+++ b/abs/core-testing/linhes-live/etc/live-shutdown
@@ -0,0 +1,50 @@
+# Functions used by rc.shutdown
+# Modified versions for linhes live systems
+
+f_saveclock ()
+{
+ :
+}
+
+f_swapoff ()
+{
+ ############################# Include session saving functions
+ . /opt/linhes-live/session-save/shutdown2
+ if [ -f /tmp/checkse ]; then
+ . /tmp/checkse
+ else
+ checkse
+ fi
+
+ if [ -n "${saving}" ] && ! session_save; then
+ echo
+ echo "If you know what you are doing, you may be able to recover"
+ echo "something from this unpleasant situation."
+ echo
+ echo "You may use the command line to investigate further ..."
+ echo
+ echo "When finished please enter 'exit', the shutdown process will"
+ echo "then continue."
+ sh -i
+ fi
+
+ #############################
+
+ stat_busy "Deactivating Swap"
+ /sbin/swapoff -a
+ stat_done
+}
+
+f_remountro ()
+{
+ if [ -n "${ejectdev}" ]; then
+ echo "Ejecting live CD"
+ eject ${ejectdev}
+ echo "========================================"
+ echo "It's safe to switch the computer off now"
+ echo -ne "Press Enter to continue"
+ read junk
+ fi
+}
+
+# End