Fix 'has_wifi' detection. (#863)

/sys/kernel/debug/ieee80211 can exist without entries sometimes
This commit is contained in:
Tim Wilkinson 2023-06-04 17:24:28 -07:00 committed by GitHub
parent 935dc2c063
commit 26742bbd83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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