applications/luci-splash: Only restart splash in hotplug for interfaces which are using splash
This commit is contained in:
parent
af72920b6e
commit
a1bd60ef6e
1 changed files with 9 additions and 2 deletions
|
@ -5,6 +5,13 @@
|
||||||
/etc/init.d/firewall enabled || exit 0
|
/etc/init.d/firewall enabled || exit 0
|
||||||
|
|
||||||
if [ -x /etc/init.d/luci_splash ]; then
|
if [ -x /etc/init.d/luci_splash ]; then
|
||||||
|
restart_splash() {
|
||||||
|
local net="$1"
|
||||||
|
if [ "$INTERFACE" = "$net" ]; then
|
||||||
logger -t splash "Reloading splash firewall rules due to ifup of $INTERFACE ($DEVICE)"
|
logger -t splash "Reloading splash firewall rules due to ifup of $INTERFACE ($DEVICE)"
|
||||||
/etc/init.d/luci_splash restart
|
/etc/init.d/luci_splash restart
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
config_load luci_splash
|
||||||
|
config_foreach restart_splash iface
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue