packages/net/shorewall-lite/files/shorewall-lite.init
nbd 382031c5c2 shorewall-lite: update to the latest release in the 4.2 series: 4.2.11.
It also includes the following changes:
  * use the shorewall "restore" action (very quick) if available in
    the initscript's restart action
  * modify the 110-MODULESDIR.patch to include /lib/modules/$(uname
    -r) in the module search path
  * include an iface hotplug action to reload the ruleset on
    interface transitions

Signed-off-by: Brian J. Murrell <brian@interlinx.bc.ca>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@18737 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-11 02:09:19 +00:00

21 lines
324 B
Bash

#!/bin/sh /etc/rc.common
START=46
start() {
touch /var/log/messages
mkdir -p /var/lock/subsys
/sbin/shorewall-lite -qq start -f
}
stop() {
/sbin/shorewall-lite -qq stop
}
restart() {
if [ -f /etc/shorewall-lite/state/restore ] ; then
/sbin/shorewall-lite -qq restore
else
/sbin/shorewall-lite -qq restart
fi
}