#!/bin/sh

# Bring up/down iptables

. /etc/sysconfig/rc.conf
. /bin/network-functions

SERVICE=firewall

do_start ()
{
	/etc/init.d/softdogd wait
	/bin/firewall --start > /dev/null 2>&1
	if [ -e /bin/fwipv6_main ]; then
	  /bin/fwipv6_main --start > /dev/null 2>&1
	fi

	return $?
}

do_stop ()
{
	echo "Sorry.. No way to stop the firewall manually"
	exit 1
}

do_status ()
{
	echo "Sorry.. not yet implemented"
	exit 1
}

case "$1" in
	start)
		do_start
		;;
	stop)
		do_stop
		;;
	status)
		do_status
		;;
	restart)
		do_start
		;;
	*)
		echo "Usage: $0 {start|stop|restart|status}"
		exit 1
esac

exit $?
