Skip to content

Commit

Permalink
lime-proto-anygw: uci set dhcp.lan.ignore=1 instead of custom /etc/dn…
Browse files Browse the repository at this point in the history
…smasq.d/ file

The final effect is the same (it will produce a no-dhcp-interface=br-lan line)
but it's more integrated in upstream logic, and so less confusing for users

Signed-off-by: Gui Iribarren <gui@altermundi.net>
  • Loading branch information
altergui committed Mar 20, 2017
1 parent fc0ed8d commit 3f89e80
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/lime-proto-anygw/src/anygw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ function anygw.configure(args)
)

local content = { }
table.insert(content, "no-dhcp-interface=br-lan")
fs.writefile("/etc/dnsmasq.d/lime-proto-anygw-00-interfaces.conf", table.concat(content, "\n").."\n")

uci:set("dhcp", "lan", "ignore", "1")

uci:save("dhcp")

content = { }
table.insert(content, "dhcp-range=tag:anygw,"..anygw_ipv4:add(1):host():string()..","..ipv4:maxhost():string())
Expand Down

0 comments on commit 3f89e80

Please sign in to comment.