iup: prevent network reloading if dhcp options are not changed

This commit is contained in:
Sukru Senli 2016-02-04 15:37:26 +01:00
parent 9b02ee98d2
commit 3e66393c7b

View file

@ -54,7 +54,7 @@ init_iup() {
esac
done
if [ $proto == "dhcp" ]; then
newreqopts="$(echo $newreqopts | sed "s/^[ \t]*//")"
newreqopts="$(echo $newreqopts | tr ' ' '\n' | sort -n | tr '\n' ' ' | sed 's/^[ \t]*//;s/[ \t]*$//')"
uci -q set network.wan.reqopts="$newreqopts"
uci commit network
ubus call network reload