From 20409f5727bfadd7d323400d7b065c0a279eb02e Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Fri, 8 Apr 2016 12:05:00 +0200 Subject: [PATCH] gluon-radvd: run on local-node instead of br-client On a layer 3 mesh, we'd like the default route to point to all node's local-node interface for roaming to work. --- .../gluon-radvd/files/etc/init.d/gluon-radvd | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/package/gluon-radvd/files/etc/init.d/gluon-radvd b/package/gluon-radvd/files/etc/init.d/gluon-radvd index 4f80a84a..feef0399 100755 --- a/package/gluon-radvd/files/etc/init.d/gluon-radvd +++ b/package/gluon-radvd/files/etc/init.d/gluon-radvd @@ -3,13 +3,14 @@ USE_PROCD=1 START=50 -start_service() { - [ -x /lib/gluon/radvd/arguments ] && { - procd_open_instance - procd_set_param command /usr/sbin/uradvd $(/lib/gluon/radvd/arguments) - procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5} - procd_set_param netdev br-client - procd_set_param stderr 1 - procd_close_instance - } +SERVICE_WRITE_PID=1 +SERVICE_DAEMONIZE=1 + + +start() { + service_start /usr/sbin/uradvd -i local-node -a $(lua -e 'print(require("gluon.site_config").prefix6)') +} + +stop() { + service_stop /usr/sbin/uradvd }