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
|
||||
|
||||
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
|
||||
else
|
||||
return false
|
||||
|
|
Loading…
Reference in New Issue