contrib/imagebuilder: Cleanups, seperate basic and network config of firewall and...
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / helpers / setup_network.sh
index 1492cbb..9958af1 100755 (executable)
@@ -61,12 +61,12 @@ if [ "$net_dhcp" == 1 ]; then
                uci set network.${netrenamed}dhcp.interface="$netrenamed"
        fi
 
-       uci batch << EOF
+uci batch << EOF
 set network.${netrenamed}dhcp.proto=static
 set network.${netrenamed}dhcp.ipaddr="$START"
 set network.${netrenamed}dhcp.netmask="$NETMASK"
+uci_commitverbose  "Setup interface for ${netrenamed}dhcp" network
 EOF
 
 fi
 
-uci_commitverbose  "Setup interface for ${netrenamed}dhcp" network