Skip to content

Commit

Permalink
add lime-app suport for ap-up
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbrk committed Dec 26, 2024
1 parent 0a580b9 commit 528c965
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/lime-system/files/usr/lib/lua/lime/wireless.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,19 @@ function wireless.mesh_ifaces()
table.insert(ifaces, entry.ifname)
end
end)
--add apup interfaces
shell_output = utils.unsafe_shell("ls /sys/class/net/ -R")
for line in shell_output:gmatch("[^\n]+") do
-- Check if the line contains the pattern 'wlanX-peerY'
print (line)
local iface = line:match("wlan(%d+)-peer(%d+)$")
if iface then
print (iface)

-- Add the matched interface to the table
table.insert(ifaces, line)
end
end
return ifaces
end

Expand Down

0 comments on commit 528c965

Please sign in to comment.