1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-15 11:53:59 +02:00
openwrt-packages/net/shorewall6/files/shorewall6.init
W. van den Akker 82c7fab9a6
Shorewall6: Add full package.
Signed-off-by: W. van den Akker <wvdakker@wilsoft.nl>
2017-11-13 08:07:06 +01:00

33 lines
509 B
Bash

#!/bin/sh /etc/rc.common
USE_PROCD=1
START=50
load_params () {
. /usr/share/shorewall/shorewallrc
}
start_service() {
load_params
${SBINDIR}/shorewall -6 $OPTIONS start $STARTOPTIONS
}
stop_service() {
load_params
${SBINDIR}/shorewall -6 $OPTIONS stop $STOPOPTIONS
}
restart_service() {
load_params
${SBINDIR}/shorewall -6 $OPTIONS restart $RESTARTOPTIONS
}
reload_service() {
load_params
${SBINDIR}/shorewall -6 $OPTIONS reload $RESTARTOPTIONS
}