# vim:filetype=sh

# We handle the shutdown from here

if [ "$SINIT_SHUTDOWN_HOOKS" = 1 ]; then
	case "$1" in
		reboot)	
			out "Requesting system reboot..."
			halt -r 
			;;
		*) 
			out "Requesting system poweroff..."
			halt -p 
			;;
	esac
fi