endptmngr: do not start if board does not have voice

Prevents the following issue on boards without voice:

Thu Dec 2 12:45:07 2021 daemon.info procd: Instance endptmngr::instance1 s in a crash loop 4 crashes, 0 seconds since last crash
This commit is contained in:
Erik Karlsson 2021-12-02 15:08:26 +01:00 committed by Sukru Senli
parent 9dda4d7ffa
commit ff7714c88e

View file

@ -7,6 +7,8 @@ USE_PROCD=1
NAME=endptmngr
start_service() {
[ "$(db -q get hw.board.hasVoice)" = "1" ] || return
procd_open_instance
procd_set_param env hw_board_hasDect=$(db get hw.board.hasDect)
procd_set_param command $NAME