Commit 272f7a03 authored by Erik Karlsson's avatar Erik Karlsson
Browse files

asterisk: do not start if board does not have voice

Prevents the following issue on boards without voice:

Thu Dec 2 12:45:22 2021 daemon.info procd: Instance asterisk::instance1 s in a crash loop 4 crashes, 0 seconds since last crash
parent 40e1d0c7
......@@ -38,6 +38,8 @@ stop_and_wait_asterisk() {
}
start_service() {
[ "$(db -q get hw.board.hasVoice)" = "1" ] || return
pidof $NAME > /dev/null && {
msg_log "$NAME [$(pidof $NAME)] is running."
return 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment