Merge 498f209685
into aae05fe368
This commit is contained in:
commit
0165cc17ab
@ -14,6 +14,7 @@ define Package/gluon-mesh-batman-adv-core
|
|||||||
CATEGORY:=Gluon
|
CATEGORY:=Gluon
|
||||||
TITLE:=Support for batman-adv meshing (core)
|
TITLE:=Support for batman-adv meshing (core)
|
||||||
DEPENDS:=+gluon-core +libgluonutil +gluon-client-bridge +firewall +libiwinfo
|
DEPENDS:=+gluon-core +libgluonutil +gluon-client-bridge +firewall +libiwinfo
|
||||||
|
PROVIDES:=gluon-radvd-provider
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Prepare
|
define Build/Prepare
|
||||||
|
3
package/gluon-mesh-batman-adv-core/files/lib/gluon/radvd/arguments
Executable file
3
package/gluon-mesh-batman-adv-core/files/lib/gluon/radvd/arguments
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/lua
|
||||||
|
local site = require "gluon.site_config"
|
||||||
|
print("-i br-client -p " .. site.prefix6)
|
@ -12,7 +12,8 @@ define Package/gluon-radvd
|
|||||||
SECTION:=gluon
|
SECTION:=gluon
|
||||||
CATEGORY:=Gluon
|
CATEGORY:=Gluon
|
||||||
TITLE:=Advertise an IPv6 prefix from the node
|
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
|
endef
|
||||||
|
|
||||||
define Package/gluon-radvd/description
|
define Package/gluon-radvd/description
|
||||||
|
@ -7,7 +7,9 @@ SERVICE_DAEMONIZE=1
|
|||||||
|
|
||||||
|
|
||||||
start() {
|
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() {
|
stop() {
|
||||||
|
Loading…
Reference in New Issue
Block a user