This commit is contained in:
Christof Schulze 2016-07-26 23:03:01 +00:00 committed by GitHub
commit 0165cc17ab
5 changed files with 9 additions and 2 deletions

View File

@ -14,6 +14,7 @@ define Package/gluon-mesh-batman-adv-core
CATEGORY:=Gluon
TITLE:=Support for batman-adv meshing (core)
DEPENDS:=+gluon-core +libgluonutil +gluon-client-bridge +firewall +libiwinfo
PROVIDES:=gluon-radvd-provider
endef
define Build/Prepare

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,8 @@ 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 +gluon-radvd-provider
# TODO: this ought to depend on gluon-mesh-provider
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() {