Shorewall6: 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:50 +01:00
parent 47889003d9
commit 82c7fab9a6
7 changed files with 169 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/shorewall6 restart
;;
ifdown)
# might need to restore some routing
/etc/init.d/shorewall6 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 -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
}
+2
View File
@@ -0,0 +1,2 @@
VARDIR=/tmp/state