Files
bpfire/config/install/halt
2010-08-12 18:04:14 +02:00

17 lines
370 B
Bash

#!/bin/sh
# Clear screen
/usr/bin/clear
echo "Shutting down..."
echo "Sending all processes the TERM signal..."
/sbin/killall5 -15
sleep 3
echo "Sending all processes the KILL signal..."
/sbin/killall5 -9
sleep 3
echo "Unmounting filesystems..."
/bin/umount -a > /dev/null 2>&1
echo "Unmounting root..."
/bin/mount -n -o remount,ro /
echo "Rebooting..."
/sbin/reboot -f