Fix netmask on br-nomesh device (for when RF mesh is disabled) (#670)

This commit is contained in:
Tim Wilkinson 2023-01-24 17:17:35 -08:00 committed by GitHub
parent 701b2afa3c
commit 773c69d171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -378,6 +378,8 @@ if do_basic then
config = config .. "config device\n" config = config .. "config device\n"
if not wireless then if not wireless then
config = config .. " option name 'br-" .. net .. "'\n option type 'bridge'\n" config = config .. " option name 'br-" .. net .. "'\n option type 'bridge'\n"
elseif cfg.wifi_enable ~= "1" then
netmask = "255.255.255.255"
end end
if nixio.fs.stat("/etc/aredn_include/fixedmac." .. net) then if nixio.fs.stat("/etc/aredn_include/fixedmac." .. net) then
config = config .. read_all("/etc/aredn_include/fixedmac." .. net) config = config .. read_all("/etc/aredn_include/fixedmac." .. net)