0
0
mirror of https://github.com/openwrt/packages.git synced 2025-08-04 13:20:36 +00:00
Files
packages/net/shorewall-lite/files/shorewall-lite.init
W. van den Akker 06fcb6e091 Shorewall-lite: Bump to version 5.1.8.1
Several changes in Makefile.

Migrate init script to procd.

Signed-off-by: W. van den Akker <wvdakker@wilsoft.nl>
2017-11-13 08:03:51 +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 -l $OPTIONS start $STARTOPTIONS
}
stop_service() {
load_params
${SBINDIR}/shorewall -l $OPTIONS stop $STOPOPTIONS
}
restart_service() {
load_params
${SBINDIR}/shorewall -l $OPTIONS restart $RESTARTOPTIONS
}
reload_service() {
load_params
${SBINDIR}/shorewall -l $OPTIONS reload $RESTARTOPTIONS
}