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