mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 11:35:54 +02:00
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@680 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
22 lines
411 B
Bash
22 lines
411 B
Bash
#!/bin/sh
|
|
# Clear screen
|
|
/bin/clear
|
|
|
|
echo "Shutting down..."
|
|
echo "Sending all processes the TERM signal..."
|
|
/bin/killall5 -15
|
|
sleep 3
|
|
echo "Sending all processes the KILL signal..."
|
|
/bin/killall5 -9
|
|
sleep 3
|
|
echo "Unmounting filesystems"
|
|
/bin/umount /tmp
|
|
/bin/umount /sys
|
|
/bin/umount /dev/pts
|
|
/bin/umount /dev
|
|
/bin/umount /root
|
|
/bin/umount /proc
|
|
echo "Unmounting root"
|
|
/bin/mount -n -o remount,ro /
|
|
/bin/reboot
|