Developing lightweight computation at the DSG edge

Commit 4c16ee13 authored by Pau Escrich's avatar Pau Escrich
Browse files

Disable dhcp server in mesh devices by default

parent 70a43416
......@@ -101,7 +101,7 @@ config 'qmp' 'networks'
option lan_address '172.30.22.1'
option lan_netmask '255.255.0.0'
option disable_lan_dhcp '0'
option disable_mesh_dhcp '0'
option disable_mesh_dhcp '1'
# Rescue IPv4 network prefix (/16 bits).
# Missing 16 bits are taken from primary device MAC.
......
......@@ -2,11 +2,11 @@
[ "$(uci get qmp.wireless.country)" == "SP" ] && {
uci set qmp.wireless.country=US
uci commit
}
[ "$(uci get qmp.update.url)" == "http://fw.qmp.cat/testing" ] && {
uci set qmp.update.url="http://fw.qmp.cat/kalimotxo"
uci commit
}
uci -q get qmp.networks.disable_mesh_dhcp || uci set qmp.networks.disable_mesh_dhcp=1
uci commit qmp
......@@ -86,14 +86,13 @@ translate("Offset to calculate the first IP to give via DHCP"))
-- Option: Leassetime
overlapping_section:option(Value, "qmp_leasetime", "DHCP leas etime",translate("Lease time for the DHCP server"))
--------------------------
-- Commit
-------------------------
function m.on_commit(self,map)
http.redirect("/luci-static/resources/qmp/wait_long.html")
luci.sys.call('/etc/qmp/qmp_control.sh configure_all > /tmp/qmp_control_network.log &')
luci.sys.call('/etc/qmp/qmp_control.sh configure_all > /tmp/qmp_control_network.log &')
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment