1234567891011121314151617181920212223242526272829303132333435 |
- #!/bin/sh
- #PKG shorewall-common
- #INIT 45
- . /etc/rc.conf
- case $1 in
- autostop) ;;
- autostart)
- test x"$shorewall" != x"YES" && exit 0
- exec sh $0 start
- ;;
- start)
- touch /var/log/messages
- mkdir -p /var/lock/subsys
- /sbin/shorewall -f start 1>/dev/null
- ;;
- stop)
- /sbin/shorewall stop 1>/dev/null
- ;;
- restart)
- if [ -f /var/lib/shorewall/restore ] ; then
- /sbin/shorewall restore
- else
- /sbin/shorewall restart 1>/dev/null
- fi
- ;;
- clear)
- /sbin/shorewall clear
- ;;
- *)
- echo "Usage: $0 {start|stop|restart|clear}"
- ;;
- esac
- exit $?
|