From: Sebastian Kemper Date: Tue, 8 Nov 2022 21:19:17 +0000 (+0100) Subject: rtpproxy: use return in init script X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e024681271be9e01bd267f4f1edfa48799517aff;p=feed%2Ftelephony.git rtpproxy: use return in init script "check_ipaddr()" & "start_service()" are functions, hence "return" should be used instead of "exit". Signed-off-by: Sebastian Kemper --- diff --git a/net/rtpproxy/files/rtpproxy.init b/net/rtpproxy/files/rtpproxy.init index f71ec6a..4c94ba2 100644 --- a/net/rtpproxy/files/rtpproxy.init +++ b/net/rtpproxy/files/rtpproxy.init @@ -48,13 +48,13 @@ check_ipaddr() { [ -z "$value" ] && { $LOG_ERR empty $type entry - exit 1 + return 1 } # Bail if more than 1 slash. [ $(echo "$value" | awk -F "/" '{print NF-1}') -gt 1 ] && { $LOG_ERR init script does not understand $type entry \""$value"\" - exit 1 + return 1 } IFS="/" read one two << EOF