64eff5b3d8
git-svn-id: svn://svn.openwrt.org/openwrt/packages@9353 3c298f89-4303-0410-b956-a3cf2f4a3e73
31 lines
511 B
Bash
31 lines
511 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
|
|
}
|
|
refresh() {
|
|
/sbin/shorewall refresh
|
|
}
|
|
|
|
check() {
|
|
/sbin/shorewall check
|
|
}
|
|
|
|
reset() {
|
|
/sbin/shorewall reset
|
|
} |