mirror of
https://github.com/freifunk-gluon/packages.git
synced 2024-06-13 10:49:17 +02:00
![Nils Schneider](/assets/img/avatar_default.png)
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.
9 lines
198 B
Plaintext
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
|