contrib/meshwizard: Remove original lan-dhcp entry if lan is used for olsrd and fix...
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / helpers / setup_dhcp.sh
index 0a5c96b..d89da3a 100755 (executable)
@@ -17,6 +17,8 @@ handle_dnsmasq() {
 config_load dhcp
 config_foreach handle_dnsmasq dhcp
 
+[ "$net" == "lan" ] && uci -q delete dhcp.lan
+
 uci batch << EOF
        set dhcp.${netrenamed}dhcp="dhcp"
        set dhcp.${netrenamed}dhcp.interface="${netrenamed}dhcp"