2
0

firewall.hotplug 336 B

1234567891011
  1. #!/bin/sh
  2. [ "$ACTION" = ifup -o "$ACTION" = ifupdate ] || exit 0
  3. [ "$ACTION" = ifupdate -a -z "$IFUPDATE_ADDRESSES" -a -z "$IFUPDATE_DATA" ] && exit 0
  4. /etc/init.d/firewall enabled || exit 0
  5. fw3 -q network "$INTERFACE" >/dev/null || exit 0
  6. logger -t firewall "Reloading firewall due to $ACTION of $INTERFACE ($DEVICE)"
  7. fw3 -q reload