From 02b0c62f3379004cfbb6436b956c6ca75ee1d8f7 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 17 Feb 2013 19:26:52 +0000 Subject: firewall3 - a C implementation of the current firewall scripts SVN-Revision: 35643 --- package/network/config/firewall3/files/firewall.hotplug | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 package/network/config/firewall3/files/firewall.hotplug (limited to 'package/network/config/firewall3/files/firewall.hotplug') diff --git a/package/network/config/firewall3/files/firewall.hotplug b/package/network/config/firewall3/files/firewall.hotplug new file mode 100644 index 0000000000..a173b130bf --- /dev/null +++ b/package/network/config/firewall3/files/firewall.hotplug @@ -0,0 +1,8 @@ +#!/bin/sh + +[ "$ACTION" = ifup ] || exit 0 + +fw3 -q network "$INTERFACE" >/dev/null || exit 0 + +logger -t firewall "Restarting firewall due to ifup of $INTERFACE ($DEVICE)" +fw3 -q restart -- cgit v1.2.3