#!/bin/sh
#
# ROCK Linux: /sbin/fastdown
#
# This is a fast shutdown / reboot script.
#

export PATH=/bin:/sbin:/usr/bin:/usr/sbin

case "$1" in
	*halt)   command=halt   ;;
	*reboot) command=reboot ;;
	*)       echo "Usage: $0 { halt | reboot }" ; exit 1 ;;
esac

touch /fastdown
$command
