firewall3: add support for shell script and iptables-restore style includes
[openwrt/openwrt.git] / package / network / config / firewall3 / files / firewall.hotplug
1 #!/bin/sh
2
3 [ "$ACTION" = ifup ] || exit 0
4
5 fw3 -q network "$INTERFACE" >/dev/null || exit 0
6
7 logger -t firewall "Reloading firewall due to ifup of $INTERFACE ($DEVICE)"
8 fw3 -q reload