diff --git a/root/easymesh/easymesh.sh b/root/easymesh/easymesh.sh index fc2baa9..d4bca59 100755 --- a/root/easymesh/easymesh.sh +++ b/root/easymesh/easymesh.sh @@ -23,7 +23,7 @@ set_apmode() { fi done - if [ $(uci -q get easymesh.config.ipmode) == "static" ]; then + if [ "$(uci -q get easymesh.config.ipmode)" == "static" ]; then # Set static IP uci set network.lan.proto='static' uci set network.lan.ipaddr=$(uci -q get easymesh.config.ipaddr)