gluon-status-page: fix status display of wireless mesh for recent openwrt

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-23 19:54:47 +01:00
parent 6504a4dd6e
commit 2f0f3ed4b9

View File

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