25-splash 402 B

1234567891011121314151617
  1. #!/bin/sh
  2. [ "$ACTION" = ifup ] || exit 0
  3. /etc/init.d/firewall enabled || exit 0
  4. if [ -x /etc/init.d/luci_splash ]; then
  5. restart_splash() {
  6. local net="$1"
  7. if [ "$INTERFACE" = "$net" ]; then
  8. logger -t splash "Reloading splash firewall rules due to ifup of $INTERFACE ($DEVICE)"
  9. /etc/init.d/luci_splash restart
  10. fi
  11. }
  12. config_load luci_splash
  13. config_foreach restart_splash iface
  14. fi