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:
87a78e0
)
asterisk: use return in init script
author
Sebastian Kemper
<sebastian_ml@gmx.net>
Tue, 8 Nov 2022 20:08:16 +0000
(21:08 +0100)
committer
Sebastian Kemper
<sebastian_ml@gmx.net>
Tue, 8 Nov 2022 20:08:54 +0000
(21:08 +0100)
"start_service()" is a function, hence "return" should be used instead
of "exit".
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/asterisk/files/asterisk.init
patch
|
blob
|
history
diff --git
a/net/asterisk/files/asterisk.init
b/net/asterisk/files/asterisk.init
index 2e02f0626781890ee3cfd200789bb061b35510d1..51ab25949ba41024a106c3ac501942387ecc36b3 100644
(file)
--- a/
net/asterisk/files/asterisk.init
+++ b/
net/asterisk/files/asterisk.init
@@
-26,7
+26,7
@@
start_service() {
config_get_bool enabled general enabled 0
if [ $enabled -eq 0 ]; then
$LOGGER service not enabled in /etc/config/$NAME
-
exit
1
+
return
1
fi
config_get_bool log_stderr general log_stderr 1