projects
/
feed
/
telephony.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2be80b0
)
rtpproxy: use return in init script
790/head
author
Sebastian Kemper
<sebastian_ml@gmx.net>
Tue, 8 Nov 2022 21:19:17 +0000
(22:19 +0100)
committer
Sebastian Kemper
<sebastian_ml@gmx.net>
Tue, 8 Nov 2022 21:19:29 +0000
(22:19 +0100)
"check_ipaddr()" & "start_service()" are functions, hence "return"
should be used instead of "exit".
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/rtpproxy/files/rtpproxy.init
patch
|
blob
|
history
diff --git
a/net/rtpproxy/files/rtpproxy.init
b/net/rtpproxy/files/rtpproxy.init
index f71ec6af52593e5b5fb479a2eb7fd34c55d7a244..4c94ba255be0cdcf0a54b78ccf8cd9b8d39b8849 100644
(file)
--- 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