aboutsummaryrefslogtreecommitdiff
path: root/net/shorewall-lite/files/hotplug_iface
diff options
context:
space:
mode:
Diffstat (limited to 'net/shorewall-lite/files/hotplug_iface')
-rw-r--r--net/shorewall-lite/files/hotplug_iface12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/shorewall-lite/files/hotplug_iface b/net/shorewall-lite/files/hotplug_iface
new file mode 100644
index 000000000..b8b79830a
--- /dev/null
+++ b/net/shorewall-lite/files/hotplug_iface
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# should restart shorewall-lite when an interface comes up
+
+[ ifup = "$ACTION" ] && {
+ /etc/init.d/shorewall-lite restart
+}
+
+[ ifdown = "$ACTION" ] && {
+ # might need to restore some routing
+ /etc/init.d/shorewall-lite restart
+}