From cab47e73e433f8f200b4bb58e03c1ab52b07eceb Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 24 Mar 2023 13:34:25 +0100 Subject: [PATCH] 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 --- .../files/lib/gluon/status-page/view/status-page.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html b/package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html index 1fbee736..0d21f94e 100644 --- a/package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html +++ b/package/gluon-status-page/files/lib/gluon/status-page/view/status-page.html @@ -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()