X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-splash%2Froot%2Fetc%2Fhotplug.d%2Fiface%2F25-splash;fp=applications%2Fluci-app-splash%2Froot%2Fetc%2Fhotplug.d%2Fiface%2F25-splash;h=045e908c7206496ce9941db425e2304930c92f6f;hp=0000000000000000000000000000000000000000;hb=1bb4822dca6113f73e3bc89e2acf15935e6f8e92;hpb=9edd0e46c3f880727738ce8ca6ff1c8b85f99ef4 diff --git a/applications/luci-app-splash/root/etc/hotplug.d/iface/25-splash b/applications/luci-app-splash/root/etc/hotplug.d/iface/25-splash new file mode 100644 index 000000000..045e908c7 --- /dev/null +++ b/applications/luci-app-splash/root/etc/hotplug.d/iface/25-splash @@ -0,0 +1,17 @@ +#!/bin/sh + +[ "$ACTION" = ifup ] || exit 0 + +/etc/init.d/firewall enabled || exit 0 + +if [ -x /etc/init.d/luci_splash ]; then + 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