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>
This commit is contained in:
W. van den Akker
2017-11-13 08:03:15 +01:00
parent 2557e39a38
commit 06fcb6e091
7 changed files with 76 additions and 42 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
#!/bin/sh
cat /proc/sys/kernel/hostname
uci get system.@system[0].hostname
+7 -6
View File
@@ -1,12 +1,13 @@
#!/bin/sh
# should restart shorewall-lite when an interface comes up
# should restart shorewall when an interface comes up
[ ifup = "$ACTION" ] && {
case "$ACTION" in
ifup)
/etc/init.d/shorewall-lite restart
}
[ ifdown = "$ACTION" ] && {
;;
ifdown)
# might need to restore some routing
/etc/init.d/shorewall-lite restart
}
;;
esac
@@ -0,0 +1,32 @@
#!/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
}