summaryrefslogtreecommitdiff
path: root/package/network
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2014-01-19 17:35:33 +0000
committerSteven Barth <cyrus@openwrt.org>2014-01-19 17:35:33 +0000
commitfac5e62abdec3cb5370bd09fdb704052001c3f30 (patch)
treead718c861c1bf0678cf91b59e510ba77a20d96af /package/network
parent33dc3f2488c5d8f81025010ef5d50c3112a29188 (diff)
downloadmtk-20170518-fac5e62abdec3cb5370bd09fdb704052001c3f30.zip
mtk-20170518-fac5e62abdec3cb5370bd09fdb704052001c3f30.tar.gz
mtk-20170518-fac5e62abdec3cb5370bd09fdb704052001c3f30.tar.bz2
firewall: don't reload if there were no address or data changes
This fixes packet loss due to reloading firewall every minute with IPv6 implementation of certain ISPs. SVN-Revision: 39332
Diffstat (limited to 'package/network')
-rw-r--r--package/network/config/firewall/files/firewall.hotplug1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/config/firewall/files/firewall.hotplug b/package/network/config/firewall/files/firewall.hotplug
index e34dc63..f1eab00 100644
--- a/package/network/config/firewall/files/firewall.hotplug
+++ b/package/network/config/firewall/files/firewall.hotplug
@@ -1,6 +1,7 @@
#!/bin/sh
[ "$ACTION" = ifup -o "$ACTION" = ifupdate ] || exit 0
+[ "$ACTION" = ifupdate -a -z "$IFUPDATE_ADDRESSES" -a -z "$IFUPDATE_DATA" ] && exit 0
/etc/init.d/firewall enabled || exit 0