diff options
author | James Meyer <james.meyer@operamail.com> | 2010-12-02 22:37:23 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2010-12-02 22:37:34 (GMT) |
commit | 8b94d7f39c71234712bead363526a0283efeb9fa (patch) | |
tree | 23f1dbd6458dc39a2c1b08bcdd4cbf768a60d84d /build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/rootoverlay/etc/larch-shutdown | |
parent | 338af567e74d08cbd357079941208e494463d61e (diff) | |
download | linhes_dev-8b94d7f39c71234712bead363526a0283efeb9fa.zip |
larch8: first checkin, still needs some work
Diffstat (limited to 'build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/rootoverlay/etc/larch-shutdown')
-rwxr-xr-x | build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/rootoverlay/etc/larch-shutdown | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/rootoverlay/etc/larch-shutdown b/build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/rootoverlay/etc/larch-shutdown new file mode 100755 index 0000000..d614d4b --- /dev/null +++ b/build_tools/larch8/larch0/profiles/linhes-local-disk-testing-i686/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 +} |