:
#	Powerfail script: invoke /etc/shutdown then sync and sleep
#	The shutdown -y cause shutdown to run without asking for any
#	confirmation. The -i0 option tells shutdown to tell init to power
#	off the machine.
#
#	NOTE: If any of your processes catch the SIGPWR signal, you should
#	send that signal to those processes before executing shutdown 0.
#
#	The uadmin command will tell the SPM to turn off the power supply

cd /
sync
/etc/shutdown -y -i0
