Last change
on this file since 4230d00 was f25bf53, checked in by Jim Gifford <clfs@…>, 16 years ago |
Formatting change to embedded
|
-
Property mode
set to
100755
|
File size:
491 bytes
|
Line | |
---|
1 | #!/bin/ash
|
---|
2 |
|
---|
3 | # System Shutdown Script
|
---|
4 | #
|
---|
5 |
|
---|
6 | . /etc/rc.d/init.d/functions
|
---|
7 |
|
---|
8 | echo
|
---|
9 | echo "System is going down for reboot or halt now."
|
---|
10 | echo
|
---|
11 |
|
---|
12 | echo "Starting stop scripts."
|
---|
13 |
|
---|
14 | for i in /etc/rc.d/stop/*; do
|
---|
15 | if [ -x $i ]; then
|
---|
16 | $i stop
|
---|
17 | fi
|
---|
18 | done
|
---|
19 |
|
---|
20 | echo -n "Syncing hardware clock to system clock:"
|
---|
21 | hwclock --systohc --utc
|
---|
22 | check_status
|
---|
23 |
|
---|
24 | echo -n "Disabling swap space: "
|
---|
25 | swapoff -a
|
---|
26 | check_status
|
---|
27 |
|
---|
28 | echo -n "Syncing all filesystems: "
|
---|
29 | sync
|
---|
30 | check_status
|
---|
31 |
|
---|
32 | echo -n "Unmounting all filesystems: "
|
---|
33 | umount -a -r
|
---|
Note:
See
TracBrowser
for help on using the repository browser.