Skip to content
Snippets Groups Projects
Unverified Commit cab47e73 authored by Stefan Weil's avatar Stefan Weil Committed by GitHub
Browse files

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: default avatarStefan Weil <sw@weilnetz.de>
parent 6504a4dd
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment