summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Kemper <sebastian_ml@gmx.net>2022-11-08 22:19:17 +0100
committerSebastian Kemper <sebastian_ml@gmx.net>2022-11-08 22:19:29 +0100
commite024681271be9e01bd267f4f1edfa48799517aff (patch)
tree43b1dcec8cb620f6c016b23a1ed05eec932de9eb
parent2be80b04dd59a29de6e4a165936fb8dd927283c5 (diff)
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 <sebastian_ml@gmx.net>
-rw-r--r--net/rtpproxy/files/rtpproxy.init4
1 files 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