From ab9981d48fdfa0c9a41316ac3ee3f40cf0f7ef1e Mon Sep 17 00:00:00 2001 From: Christof Schulze Date: Sat, 11 Feb 2017 22:25:47 +0100 Subject: [PATCH 1/3] gluon-radvd: remove netdev from initscript uradvd will tolerate devices appearing and disappearing during runtime --- package/gluon-radvd/files/etc/init.d/gluon-radvd | 1 - 1 file changed, 1 deletion(-) diff --git a/package/gluon-radvd/files/etc/init.d/gluon-radvd b/package/gluon-radvd/files/etc/init.d/gluon-radvd index 4f80a84a..788d61b9 100755 --- a/package/gluon-radvd/files/etc/init.d/gluon-radvd +++ b/package/gluon-radvd/files/etc/init.d/gluon-radvd @@ -8,7 +8,6 @@ start_service() { 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 } From 4a7b82725b9e1198d6e054982535e108ed96c79b Mon Sep 17 00:00:00 2001 From: Christof Schulze Date: Sat, 11 Feb 2017 22:30:10 +0100 Subject: [PATCH 2/3] gluon-radvd: fix indentation in initscript --- package/gluon-radvd/files/etc/init.d/gluon-radvd | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/package/gluon-radvd/files/etc/init.d/gluon-radvd b/package/gluon-radvd/files/etc/init.d/gluon-radvd index 788d61b9..6ba8986e 100755 --- a/package/gluon-radvd/files/etc/init.d/gluon-radvd +++ b/package/gluon-radvd/files/etc/init.d/gluon-radvd @@ -4,11 +4,12 @@ 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 stderr 1 - procd_close_instance - } + [ -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 stderr 1 + procd_close_instance + } } From 114b43122aef97aa1a4d7be1614925f8f14e5b77 Mon Sep 17 00:00:00 2001 From: Christof Schulze Date: Sat, 11 Feb 2017 22:38:23 +0100 Subject: [PATCH 3/3] gluon-radvd: fix coding style in initscript --- package/gluon-radvd/files/etc/init.d/gluon-radvd | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/package/gluon-radvd/files/etc/init.d/gluon-radvd b/package/gluon-radvd/files/etc/init.d/gluon-radvd index 6ba8986e..d38b9441 100755 --- a/package/gluon-radvd/files/etc/init.d/gluon-radvd +++ b/package/gluon-radvd/files/etc/init.d/gluon-radvd @@ -4,12 +4,11 @@ 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 stderr 1 - procd_close_instance - } + [ -x /lib/gluon/radvd/arguments ] || return 1 + + 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 stderr 1 + procd_close_instance }