Skip to content
Snippets Groups Projects
Unverified Commit 65ee128c authored by Christof Schulze's avatar Christof Schulze Committed by Matthias Schiffer
Browse files

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]
parent aae05fe3
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/lua
local site = require "gluon.site_config"
print("-i br-client -p " .. site.prefix6)
......@@ -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
......
......@@ -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() {
......
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