aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-08-26 22:46:24 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-08-26 22:46:24 +0000
commit590fdc946a407cd345081ee78824e333c726a06a (patch)
tree2491e76b4baffa4589a9d0a744ab8ecd337758ac
parent01cbda1a3a25186dd833af534e4df6bdd537c1ed (diff)
downloadupstream-590fdc946a407cd345081ee78824e333c726a06a.tar.gz
upstream-590fdc946a407cd345081ee78824e333c726a06a.tar.bz2
upstream-590fdc946a407cd345081ee78824e333c726a06a.zip
firewall: emit hotplug events for interface add/remove
SVN-Revision: 17415
-rwxr-xr-xpackage/firewall/files/uci_firewall.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/firewall/files/uci_firewall.sh b/package/firewall/files/uci_firewall.sh
index b71b25de7c..44dd48b4e4 100755
--- a/package/firewall/files/uci_firewall.sh
+++ b/package/firewall/files/uci_firewall.sh
@@ -96,6 +96,7 @@ addif() {
$IPTABLES -t raw -I PREROUTING 1 -i "$ifname" -j zone_${zone}_notrack
uci_set_state firewall core "${network}_ifname" "$ifname"
uci_set_state firewall core "${network}_zone" "$zone"
+ ACTION=add ZONE="$zone" INTERFACE="$network" DEVICE="$ifname" /sbin/hotplug-call firewall
}
delif() {
@@ -117,6 +118,7 @@ delif() {
$IPTABLES -D forward -i "$ifname" -j zone_${zone}_forward
uci_revert_state firewall core "${network}_ifname"
uci_revert_state firewall core "${network}_zone"
+ ACTION=remove ZONE="$zone" INTERFACE="$network" DEVICE="$ifname" /sbin/hotplug-call firewall
}
load_synflood() {