Skip to content
Snippets Groups Projects
Commit 8ffdcaaa authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-mesh-batman-adv-core: announce/neighbours.d: use batman-adv-visdata

parent 939087ce
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ define Package/gluon-mesh-batman-adv-core ...@@ -11,7 +11,7 @@ define Package/gluon-mesh-batman-adv-core
SECTION:=gluon SECTION:=gluon
CATEGORY:=Gluon CATEGORY:=Gluon
TITLE:=Support for batman-adv meshing (core) TITLE:=Support for batman-adv meshing (core)
DEPENDS:=+gluon-core +gluon-client-bridge +firewall +libiwinfo-lua DEPENDS:=+gluon-core +gluon-client-bridge +firewall +libiwinfo-lua +batman-adv-visdata
endef endef
define Build/Prepare define Build/Prepare
......
...@@ -14,7 +14,7 @@ end ...@@ -14,7 +14,7 @@ end
function batadv() function batadv()
local interfaces = {} local interfaces = {}
local list = io.lines("/sys/kernel/debug/batman_adv/bat0/originators") local list = io.lines("/tmp/batman-adv-visdata/bat0/originators")
for line in list do for line in list do
local mac1, lastseen, tq, mac2, ifname = local mac1, lastseen, tq, mac2, ifname =
line:match("^([0-9a-f:]+) +(%d+%.%d+)s +%( *(%d+)%) +([0-9a-f:]+) +%[ *(.-)%]") line:match("^([0-9a-f:]+) +(%d+%.%d+)s +%( *(%d+)%) +([0-9a-f:]+) +%[ *(.-)%]")
......
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