From: Manuel Munz Date: Sun, 2 Jun 2013 16:41:03 +0000 (+0000) Subject: applications/luci-splash: Add hotplug script for splash X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=af72920b6ef743562d2d6c009974bc18915c8390;p=oweals%2Fluci.git applications/luci-splash: Add hotplug script for 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