applications/luci-splash: Add hotplug script for splash
authorManuel Munz <freifunk@somakoma.de>
Sun, 2 Jun 2013 16:41:03 +0000 (16:41 +0000)
committerManuel Munz <freifunk@somakoma.de>
Sun, 2 Jun 2013 16:41:03 +0000 (16:41 +0000)
applications/luci-splash/root/etc/hotplug.d/iface/25-splash [new file with mode: 0644]

diff --git a/applications/luci-splash/root/etc/hotplug.d/iface/25-splash b/applications/luci-splash/root/etc/hotplug.d/iface/25-splash
new file mode 100644 (file)
index 0000000..cf82683
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+[ "$ACTION" = ifup ] || exit 0
+
+/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
+fi