diff options
author | James Meyer <james.meyer@operamail.com> | 2008-11-23 03:47:32 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2008-11-23 03:47:32 (GMT) |
commit | a73aa26202d19da424722bcf1285b566dbfd9d8d (patch) | |
tree | cc24843c13127ef3b5d8207aa7c82be0b1f00d37 /abs/mv-core/mythvantage-live/etc/live-shutdown | |
parent | a1219610c24fc89e2e4c1b81194fe25e40933cf5 (diff) | |
download | linhes_pkgbuild-a73aa26202d19da424722bcf1285b566dbfd9d8d.zip linhes_pkgbuild-a73aa26202d19da424722bcf1285b566dbfd9d8d.tar.gz linhes_pkgbuild-a73aa26202d19da424722bcf1285b566dbfd9d8d.tar.bz2 |
add mythvantage specific packages.
Diffstat (limited to 'abs/mv-core/mythvantage-live/etc/live-shutdown')
-rw-r--r-- | abs/mv-core/mythvantage-live/etc/live-shutdown | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/abs/mv-core/mythvantage-live/etc/live-shutdown b/abs/mv-core/mythvantage-live/etc/live-shutdown new file mode 100644 index 0000000..99c4c10 --- /dev/null +++ b/abs/mv-core/mythvantage-live/etc/live-shutdown @@ -0,0 +1,50 @@ +# Functions used by rc.shutdown +# Modified versions for mythvantage live systems + +f_saveclock () +{ + : +} + +f_swapoff () +{ + ############################# Include session saving functions + . /opt/mythvantage-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 |