]>
Commit | Line | Data |
---|---|---|
cd1a2927 | 1 | #!/bin/sh |
de297ec3 | 2 | # Clear screen |
6cf9e770 | 3 | /usr/bin/clear |
cd1a2927 | 4 | echo "Shutting down..." |
de297ec3 | 5 | echo "Sending all processes the TERM signal..." |
6cf9e770 | 6 | /sbin/killall5 -15 |
cd1a2927 MT |
7 | sleep 3 |
8 | echo "Sending all processes the KILL signal..." | |
6cf9e770 | 9 | /sbin/killall5 -9 |
cd1a2927 | 10 | sleep 3 |
3d6e1202 MT |
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 | |
cd1a2927 | 18 | echo "Unmounting root" |
3d6e1202 | 19 | /bin/mount -n -o remount,ro / |
6cf9e770 | 20 | /sbin/reboot -f |