From 3e66393c7b2c679dca14241b00d15dbc33584355 Mon Sep 17 00:00:00 2001 From: Sukru Senli Date: Thu, 4 Feb 2016 15:37:26 +0100 Subject: [PATCH] iup: prevent network reloading if dhcp options are not changed --- iup/files/etc/init.d/iup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iup/files/etc/init.d/iup b/iup/files/etc/init.d/iup index 436045e8f..e6e42d3a8 100755 --- a/iup/files/etc/init.d/iup +++ b/iup/files/etc/init.d/iup @@ -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