packages/net/shorewall/files/shorewall.init
florian 235c5308ea Add shorewall (#1588)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@7238 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-14 21:27:03 +00:00

25 lines
423 B
Bash

#!/bin/sh /etc/rc.common
START=46
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
}