: /etc/shutdown 4/5/90
: Take the system to single user mode.
: Unmount devices mounted by /etc/rc.

/etc/wall <<EOF
System going down!
EOF

/bin/echo -n 'Do you wish to shut the system down? '
read ans

case $ans in
y|Y|yes|YES)
	/etc/umount.all
	/bin/echo 'Wait for the # prompt on the console.'
	/bin/echo 'Then type "sync" before rebooting.'
	/bin/sync
	exec /bin/kill -1 1
	;;

*)
	/bin/echo 'System remaining multi-user.  DO NOT POWER OFF!'
	/bin/sync
	;;
esac
