mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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:
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
cat /proc/sys/kernel/hostname
|
||||
uci get system.@system[0].hostname
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user