From: Sebastian Kemper Date: Tue, 8 Nov 2022 20:08:16 +0000 (+0100) Subject: asterisk: use return in init script X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=69aebd4f4f4f8cf244276c4967813061412aed21;p=feed%2Ftelephony.git asterisk: use return in init script "start_service()" is a function, hence "return" should be used instead of "exit". Signed-off-by: Sebastian Kemper --- diff --git a/net/asterisk/files/asterisk.init b/net/asterisk/files/asterisk.init index 2e02f06..51ab259 100644 --- a/net/asterisk/files/asterisk.init +++ b/net/asterisk/files/asterisk.init @@ -26,7 +26,7 @@ start_service() { config_get_bool enabled general enabled 0 if [ $enabled -eq 0 ]; then $LOGGER service not enabled in /etc/config/$NAME - exit 1 + return 1 fi config_get_bool log_stderr general log_stderr 1