mirror of https://github.com/aredn/aredn.git
Fix 'has_wifi' detection. (#863)
/sys/kernel/debug/ieee80211 can exist without entries sometimes
This commit is contained in:
parent
935dc2c063
commit
26742bbd83
|
@ -260,7 +260,7 @@ function hardware.has_usb()
|
||||||
end
|
end
|
||||||
|
|
||||||
function hardware.has_wifi()
|
function hardware.has_wifi()
|
||||||
if nixio.fs.stat("/sys/kernel/debug/ieee80211") then
|
if nixio.fs.stat("/sys/kernel/debug/ieee80211/phy0") then
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue