fixes shorewall script that is used to get the systems hostname, #3672
[openwrt/svn-archive/archive.git] / net / shorewall-common / 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 refresh() {
22 /sbin/shorewall refresh
23 }
24
25 check() {
26 /sbin/shorewall check
27 }
28
29 reset() {
30 /sbin/shorewall reset
31 }