iup: prevent possible sh warning

This commit is contained in:
Sukru Senli 2016-02-07 11:44:34 +01:00
parent 3e66393c7b
commit 97ad605a1c

View file

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