From e024681271be9e01bd267f4f1edfa48799517aff Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Tue, 8 Nov 2022 22:19:17 +0100 Subject: [PATCH] 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 --- net/rtpproxy/files/rtpproxy.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2