mirror of
https://github.com/openwrt/telephony.git
synced 2025-12-21 19:14:34 +04:00
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>
This commit is contained in:
@@ -48,13 +48,13 @@ check_ipaddr() {
|
|||||||
|
|
||||||
[ -z "$value" ] && {
|
[ -z "$value" ] && {
|
||||||
$LOG_ERR empty $type entry
|
$LOG_ERR empty $type entry
|
||||||
exit 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Bail if more than 1 slash.
|
# Bail if more than 1 slash.
|
||||||
[ $(echo "$value" | awk -F "/" '{print NF-1}') -gt 1 ] && {
|
[ $(echo "$value" | awk -F "/" '{print NF-1}') -gt 1 ] && {
|
||||||
$LOG_ERR init script does not understand $type entry \""$value"\"
|
$LOG_ERR init script does not understand $type entry \""$value"\"
|
||||||
exit 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
IFS="/" read one two << EOF
|
IFS="/" read one two << EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user