do not reload network if reqopts are not changed

This commit is contained in:
Sukru Senli 2018-03-15 15:29:33 +01:00
parent 370c6f3492
commit a1d2dc97b0

View file

@ -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