summaryrefslogtreecommitdiffstats
path: root/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/larch-shutdown
diff options
context:
space:
mode:
authorJames Meyer <James.meyer@operamail.com>2008-10-02 03:23:45 (GMT)
committerJames Meyer <James.meyer@operamail.com>2008-10-02 03:23:45 (GMT)
commit618d4ad515a93d1e48934be5846edd71270171ec (patch)
treea22a9294af81215d4a7b1053e5fdb4d746f39d41 /build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/larch-shutdown
downloadlinhes_dev-618d4ad515a93d1e48934be5846edd71270171ec.zip
initital import
Diffstat (limited to 'build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/larch-shutdown')
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/larch-shutdown47
1 files changed, 47 insertions, 0 deletions
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/larch-shutdown b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/larch-shutdown
new file mode 100644
index 0000000..d614d4b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/larch-shutdown
@@ -0,0 +1,47 @@
+# Functions used by rc.shutdown
+# Modified versions for larch live systems
+
+f_saveclock ()
+{
+ :
+}
+
+f_swapoff ()
+{
+ ############################# Include session saving functions
+ # . /opt/larch-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 "sleeping for 6 seconds"
+ sleep 6
+
+ fi
+}