Shorewall: Add full package.

Signed-off-by: W. van den Akker <wvdakker@wilsoft.nl>
This commit is contained in:
W. van den Akker
2017-11-13 08:06:17 +01:00
parent 68df55029e
commit 47889003d9
7 changed files with 170 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
uci get system.@system[0].hostname
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
# should restart shorewall when an interface comes up
case "$ACTION" in
ifup)
/etc/init.d/shorewall restart
;;
ifdown)
# might need to restore some routing
/etc/init.d/shorewall restart
;;
esac
+32
View File
@@ -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 $OPTIONS start $STARTOPTIONS
}
stop_service() {
load_params
${SBINDIR}/shorewall $OPTIONS stop $STOPOPTIONS
}
restart_service() {
load_params
${SBINDIR}/shorewall $OPTIONS restart $RESTARTOPTIONS
}
reload_service() {
load_params
${SBINDIR}/shorewall $OPTIONS reload $RESTARTOPTIONS
}
+2
View File
@@ -0,0 +1,2 @@
VARDIR=/tmp/state