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
parent afd0de4800
commit 5bf7a7eea5
3 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,2 @@
rule 'INPUT -p IPv6 --ip6-protocol ipv6-icmp --ip6-icmp-type router-solicitation -i bat0 -j DROP'
rule 'OUTPUT -p IPv6 --ip6-protocol ipv6-icmp --ip6-icmp-type router-advertisement -o bat0 -j DROP'

View File

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

View File

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