From a1d2dc97b0f55a1c028012d12d30447f05ab3baa Mon Sep 17 00:00:00 2001 From: Sukru Senli Date: Thu, 15 Mar 2018 15:29:33 +0100 Subject: [PATCH] do not reload network if reqopts are not changed --- init/icwmpd.init | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init/icwmpd.init b/init/icwmpd.init index 13bc4bb..95f4b72 100644 --- a/init/icwmpd.init +++ b/init/icwmpd.init @@ -87,6 +87,8 @@ enable_dhcp_option43() { done if [ $proto == "dhcp" ]; then newreqopts="$(echo $newreqopts | tr ' ' '\n' | sort -n | tr '\n' ' ' | sed 's/^[ \t]*//;s/[ \t]*$//')" + reqopts="$(echo $reqopts | tr ' ' '\n' | sort -n | tr '\n' ' ' | sed 's/^[ \t]*//;s/[ \t]*$//')" + [ "$newreqopts" == "$reqopts" ] && return uci -q set network.$wan.reqopts="$newreqopts" uci commit network ubus call network reload