From af72920b6ef743562d2d6c009974bc18915c8390 Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Sun, 2 Jun 2013 16:41:03 +0000 Subject: [PATCH] applications/luci-splash: Add hotplug script for splash --- applications/luci-splash/root/etc/hotplug.d/iface/25-splash | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 applications/luci-splash/root/etc/hotplug.d/iface/25-splash 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 index 000000000..cf8268350 --- /dev/null +++ b/applications/luci-splash/root/etc/hotplug.d/iface/25-splash @@ -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 -- 2.11.0