]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | # Clear screen | |
3 | /usr/bin/clear | |
4 | echo "Shutting down..." | |
5 | echo "Sending all processes the TERM signal..." | |
6 | /sbin/killall5 -15 | |
7 | sleep 3 | |
8 | echo "Sending all processes the KILL signal..." | |
9 | /sbin/killall5 -9 | |
10 | sleep 3 | |
11 | echo "Unmounting filesystems..." | |
12 | /bin/umount -a > /dev/null 2>&1 | |
13 | echo "Unmounting root..." | |
14 | /bin/mount -n -o remount,ro / | |
15 | echo "Rebooting..." | |
16 | /sbin/reboot -f |