From 114b43122aef97aa1a4d7be1614925f8f14e5b77 Mon Sep 17 00:00:00 2001 From: Christof Schulze Date: Sat, 11 Feb 2017 22:38:23 +0100 Subject: [PATCH] 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 }