aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall
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
commit13e7d00b5c78d5e758b08eaddbc81905135c36a3 (patch)
tree25e226113cdf7e93b2899c228675d0f37c3cbf4b /package/firewall
parentb552a51b7c9c490b84cd3e28c2da82e1794f1fec (diff)
downloadmaster-187ad058-13e7d00b5c78d5e758b08eaddbc81905135c36a3.tar.gz
master-187ad058-13e7d00b5c78d5e758b08eaddbc81905135c36a3.tar.bz2
master-187ad058-13e7d00b5c78d5e758b08eaddbc81905135c36a3.zip
firewall: emit hotplug events for interface add/remove
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17415 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/firewall')
-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() {