mirror of https://github.com/aredn/aredn.git
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:
parent
72e299a8ab
commit
784f99ffcb
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue