From: Sebastian Kemper Date: Tue, 8 Nov 2022 20:12:48 +0000 (+0100) Subject: coturn: use return in init script X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ebfad751c7c2623128d7eb64cc89309e86e71eda;p=feed%2Ftelephony.git coturn: 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/coturn/Makefile b/net/coturn/Makefile index 728c482..850c95a 100644 --- a/net/coturn/Makefile +++ b/net/coturn/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=coturn PKG_VERSION:=4.5.2 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/coturn/coturn/tar.gz/$(PKG_VERSION)? diff --git a/net/coturn/files/turnserver.init b/net/coturn/files/turnserver.init index 8f36d5a..73bf916 100755 --- a/net/coturn/files/turnserver.init +++ b/net/coturn/files/turnserver.init @@ -20,7 +20,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