#! /bin/sh
#
# shutoff -- turns everything possible off before init reboots or halts
#            this machine.
#

[ X"$1" = X"info" ] && exit

# kill any lingering daemons
killall kerneld
killall update

# unmount all swap and file partitions
swapoff -a
umount -a

# unmount /
mount -n -o remount,ro /

# and die!
