blob: 807ec47ac345920842c35cf53befd1631ce12662 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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
|