applications/luci-splash: Only restart splash in hotplug for interfaces which are using splash

This commit is contained in:
Manuel Munz 2013-06-02 23:48:30 +00:00
parent af72920b6e
commit a1bd60ef6e

View file

@ -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
}
config_load luci_splash
config_foreach restart_splash iface
fi fi