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:
parent
6504a4dd6e
commit
cab47e73e4
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user