packages/net/shorewall: add dependency on ip util, fixes #4251
[openwrt/svn-archive/archive.git] / net / shorewall / files / shorewall.init
1 #!/bin/sh /etc/rc.common
2
3 START=46
4 start() {
5 touch /var/log/messages
6 mkdir -p /var/lock/subsys
7 /sbin/shorewall -f start 1>/dev/null &
8 }
9
10 stop() {
11 /sbin/shorewall stop 1>/dev/null
12 }
13
14 restart() {
15 if [ -f /var/lib/shorewall/restore ] ; then
16 /sbin/shorewall restore
17 else
18 /sbin/shorewall restart 1>/dev/null
19 fi
20 }
21 clear() {
22 /sbin/shorewall clear
23 }
24