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:
parent
afd0de4800
commit
5bf7a7eea5
@ -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'
|
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)
|
@ -7,7 +7,9 @@ SERVICE_DAEMONIZE=1
|
||||
|
||||
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user