Make sure we definately have wifi setup (#1588)

The wifi interface was getting lost during setup, so we make sure
its there.
This is a workaround for an unknown root cause.
This commit is contained in:
Tim Wilkinson 2024-09-30 14:41:31 -07:00 committed by GitHub
parent 72e299a8ab
commit 784f99ffcb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -73,11 +73,15 @@ do
elseif line:match("^wifi_chanbw") then elseif line:match("^wifi_chanbw") then
line = "wifi_chanbw = " .. defaultwifi.bandwidth line = "wifi_chanbw = " .. defaultwifi.bandwidth
elseif line:match("^wifi_intf") then elseif line:match("^wifi_intf") then
line = "wifi_intf = wlan0" line = ""
end end
end end
lines[#lines + 1] = line lines[#lines + 1] = line
end end
if defaultwifi then
lines[#lines + 1] = "wifi_intf = wlan0"
end
-- dhcp dmz -- dhcp dmz
local dmz_dhcp_base, net = ("1" .. decimal_to_ip((ip_to_decimal("10." .. mac2) * 8) % 0x1000000)):match("(%d+%.%d+%.%d+%.)(%d+)") local dmz_dhcp_base, net = ("1" .. decimal_to_ip((ip_to_decimal("10." .. mac2) * 8) % 0x1000000)):match("(%d+%.%d+%.%d+%.)(%d+)")
net = tonumber(net) net = tonumber(net)