gluon-radvd: externalize arguments

The arguments are now provided by gluon-mesh-batman-adv-core, so
gluon-radvd can be used with other mesh protocols.

[Matthias Schiffer: removed PROVIDES dependency]
This commit is contained in:
Christof Schulze 2016-07-27 01:22:57 +02:00 committed by Matthias Schiffer
parent aae05fe368
commit 65ee128c37
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
4 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,3 @@
#!/usr/bin/lua
local site = require "gluon.site_config"
print("-i br-client -p " .. site.prefix6)

View File

@ -12,7 +12,7 @@ define Package/gluon-radvd
SECTION:=gluon
CATEGORY:=Gluon
TITLE:=Advertise an IPv6 prefix from the node
DEPENDS:=+gluon-core +gluon-ebtables +gluon-mesh-batman-adv +uradvd
DEPENDS:=+gluon-core +uradvd
endef
define Package/gluon-radvd/description

View File

@ -7,7 +7,9 @@ SERVICE_DAEMONIZE=1
start() {
service_start /usr/sbin/uradvd -i br-client -p $(lua -e 'print(require("gluon.site_config").prefix6)')
[ -x /lib/gluon/radvd/arguments ] && {
service_start /usr/sbin/uradvd $(/lib/gluon/radvd/arguments)
}
}
stop() {