projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FF-Wizard: Set interface protocol to static, don't add the zone to network if it...
[project/luci.git]
/
applications
/
luci-ffwizard-leipzig
/
luasrc
/
model
/
cbi
/
ffwizard.lua
diff --git
a/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
b/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
index
5245a92
..
cdace2b
100644
(file)
--- a/
applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
+++ b/
applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua
@@
-178,6
+178,7
@@
function main.write(self, section, value)
-- Crate network interface
local netconfig = _strip_internals(uci:get_all("freifunk", "interface"))
-- Crate network interface
local netconfig = _strip_internals(uci:get_all("freifunk", "interface"))
+ netconfig.proto = "static"
netconfig.ipaddr = ip
uci:section("network", "interface", device, netconfig)
netconfig.ipaddr = ip
uci:section("network", "interface", device, netconfig)