gluon-status-page: fix status display of wireless mesh for recent openwrt (#2826)

Instead of checking for the deprecated sysfs entry `wireless` which no
longer exists when running newer versions of openwrt, testing for `phy80211`
can be used and works for old and new versions of openwrt.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2023-03-24 13:34:25 +01:00 committed by GitHub
parent 6504a4dd6e
commit cab47e73e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@
iface = lower:sub(pattern:len()) iface = lower:sub(pattern:len())
end end
return unistd.access('/sys/class/net/' .. iface .. '/wireless') ~= nil return unistd.access('/sys/class/net/' .. iface .. '/phy80211') ~= nil
end end
local uconn = ubus.connect() local uconn = ubus.connect()