Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
4c16ee13
Commit
4c16ee13
authored
Jul 15, 2014
by
Pau Escrich
Browse files
Disable dhcp server in mesh devices by default
parent
70a43416
Changes
3
Hide whitespace changes
Inline
Side-by-side
packages/qmp-system/files/etc/qmp/qmp.default-config
View file @
4c16ee13
...
...
@@ -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.
...
...
packages/qmp-system/files/etc/uci-defaults/qmp_kalimotxo_updates
View file @
4c16ee13
...
...
@@ -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
packages/qmp-system/files/usr/lib/lua/luci/model/cbi/qmp/network_adv.lua
View file @
4c16ee13
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment