diff options
author | Steven Barth <cyrus@openwrt.org> | 2014-01-19 17:35:33 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2014-01-19 17:35:33 +0000 |
commit | fac5e62abdec3cb5370bd09fdb704052001c3f30 (patch) | |
tree | ad718c861c1bf0678cf91b59e510ba77a20d96af | |
parent | 33dc3f2488c5d8f81025010ef5d50c3112a29188 (diff) | |
download | mtk-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
-rw-r--r-- | package/network/config/firewall/files/firewall.hotplug | 1 |
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 |