From: Sebastian Kemper Date: Tue, 8 Nov 2022 20:19:19 +0000 (+0100) Subject: freeswitch: use return in init script X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9604a203d5b749e5ef17f5dcc6cfebbb4afeb7f6;p=feed%2Ftelephony.git freeswitch: 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/freeswitch/files/freeswitch.init b/net/freeswitch/files/freeswitch.init index c390b9f..f2b0c9c 100644 --- a/net/freeswitch/files/freeswitch.init +++ b/net/freeswitch/files/freeswitch.init @@ -26,7 +26,7 @@ start_service() { config_get_bool enabled general enabled 0 if [ $enabled -eq 0 ]; then $LOG_ERR service not enabled in /etc/config/$NAME - exit 1 + return 1 fi config_get_bool log_stderr general log_stderr 1 @@ -46,7 +46,7 @@ start_service() { $LOG_INFO using procd\'s default term_timeout elif ! [ 0 -lt "$term_timeout" ] 2>/dev/null; then $LOG_ERR invalid term_timeout in /etc/config/$NAME - exit 1 + return 1 fi for i in "$dir_localstate" "$dir_run"; do