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