summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-splash/root
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-splash/root')
-rw-r--r--applications/luci-splash/root/etc/hotplug.d/iface/25-splash11
1 files changed, 9 insertions, 2 deletions
diff --git a/applications/luci-splash/root/etc/hotplug.d/iface/25-splash b/applications/luci-splash/root/etc/hotplug.d/iface/25-splash
index cf82683508..045e908c72 100644
--- a/applications/luci-splash/root/etc/hotplug.d/iface/25-splash
+++ b/applications/luci-splash/root/etc/hotplug.d/iface/25-splash
@@ -5,6 +5,13 @@
/etc/init.d/firewall enabled || exit 0
if [ -x /etc/init.d/luci_splash ]; then
- logger -t splash "Reloading splash firewall rules due to ifup of $INTERFACE ($DEVICE)"
- /etc/init.d/luci_splash restart
+ restart_splash() {
+ local net="$1"
+ if [ "$INTERFACE" = "$net" ]; then
+ logger -t splash "Reloading splash firewall rules due to ifup of $INTERFACE ($DEVICE)"
+ /etc/init.d/luci_splash restart
+ fi
+ }
+ config_load luci_splash
+ config_foreach restart_splash iface
fi