Bläddra i källkod

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]
Christof Schulze 7 år sedan
förälder
incheckning
65ee128c37

+ 0 - 0
package/gluon-radvd/files/lib/gluon/ebtables/300-radv-input-output → package/gluon-mesh-batman-adv-core/files/lib/gluon/ebtables/300-radv-input-output


+ 3 - 0
package/gluon-mesh-batman-adv-core/files/lib/gluon/radvd/arguments

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

+ 1 - 1
package/gluon-radvd/Makefile

@@ -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

+ 3 - 1
package/gluon-radvd/files/etc/init.d/gluon-radvd

@@ -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() {