X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=contrib%2Fpackage%2Fmeshwizard%2Ffiles%2Fusr%2Fbin%2Fmeshwizard%2Fhelpers%2Finitial_config.sh;h=388886a54f1d5ba57677ff14c7699082f30ac641;hp=a5f670dd5fb57a60094f4323048fef4d88915cd0;hb=95a97c8d32b9cbf98cedac56ba0c98716793ff8f;hpb=2d0171d72c03ba59b21cd0e7b24ee4a036197785 diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/initial_config.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/initial_config.sh index a5f670dd5..388886a54 100755 --- a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/initial_config.sh +++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/initial_config.sh @@ -45,13 +45,15 @@ if [ -n "$(uci -q get meshwizard.contact)" ]; then uci -q delete meshwizard.contact fi -if [ -n "$(uci -q get meshwizard.luci_main)" ]; then - echo " + Setup luci" - uci show meshwizard.luci_main |sed -e 's/^meshwizard/luci/g' -e 's/luci_main/main/' | while read line; do - eval uci set $line - echo " $line" - done - uci -q delete meshwizard.luci_main +if [ "$has_luci" == TRUE ]; then + if [ -n "$(uci -q get meshwizard.luci_main)" ]; then + echo " + Setup luci" + uci show meshwizard.luci_main |sed -e 's/^meshwizard/luci/g' -e 's/luci_main/main/' | while read line; do + eval uci set $line + echo " $line" + done + uci -q delete meshwizard.luci_main + fi fi uci commit