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