Rework LuCI build system
[project/luci.git] / applications / luci-app-splash / root / etc / hotplug.d / iface / 25-splash
1 #!/bin/sh
2
3 [ "$ACTION" = ifup ] || exit 0
4
5 /etc/init.d/firewall enabled || exit 0
6
7 if [ -x /etc/init.d/luci_splash ]; then
8         restart_splash() {
9                 local net="$1"
10                 if [ "$INTERFACE" = "$net" ]; then
11                         logger -t splash "Reloading splash firewall rules due to ifup of $INTERFACE ($DEVICE)"
12                         /etc/init.d/luci_splash restart
13                 fi
14         }
15         config_load luci_splash
16         config_foreach restart_splash iface
17 fi