]>
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 /tmp | |
13 | /bin/umount /sys | |
14 | /bin/umount /dev/pts | |
15 | /bin/umount /dev | |
16 | /bin/umount /root | |
17 | /bin/umount /proc | |
18 | echo "Unmounting root" | |
19 | /bin/mount -n -o remount,ro / | |
20 | /sbin/reboot -f |