1
0
mirror of https://github.com/freifunk-gluon/packages.git synced 2024-06-13 10:49:17 +02:00
gluon-packages/gluon/gluon-mesh-batman-adv/files/lib/gluon/announce/announce.d/network/addresses
Nils Schneider 13f0308be1 gluon-announce: detach announce.d from alfred
All announce.d scripts have been moved to /lib/gluon/announce/announce.d
The script /lib/gluon/announce/announce.lua will collect all information
and output json.
2014-07-11 14:43:47 +02:00

9 lines
198 B
Plaintext

local ip = util.exec('ip -o -6 addr show dev br-client')
local addresses = {}
for _, line in ipairs(util.split(ip)) do
table.insert(addresses, line:match('inet6 ([%x:]+)/'))
end
return addresses