diff options
author | Manuel Munz <freifunk@somakoma.de> | 2013-06-02 23:48:30 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2013-06-02 23:48:30 +0000 |
commit | a1bd60ef6ee775b8bb12fb1db61ae792b41e9d86 (patch) | |
tree | 29173049679ca21a4de9f0c735bfe2669e094eb8 | |
parent | af72920b6ef743562d2d6c009974bc18915c8390 (diff) |
applications/luci-splash: Only restart splash in hotplug for interfaces which are using splash
-rw-r--r-- | applications/luci-splash/root/etc/hotplug.d/iface/25-splash | 11 |
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 cf8268350..045e908c7 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 |