applications/luci-splash: Add hotplug script for splash
This commit is contained in:
parent
039cf65524
commit
af72920b6e
1 changed files with 10 additions and 0 deletions
10
applications/luci-splash/root/etc/hotplug.d/iface/25-splash
Normal file
10
applications/luci-splash/root/etc/hotplug.d/iface/25-splash
Normal file
|
@ -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
|
Loading…
Reference in a new issue