Update package [ dectmngr ]

/etc/init.d/dect: gets DECT RFPI from the board DB and passes it to dectmngr
via a command line argument.
This commit is contained in:
Yalu Zhang 2021-04-12 15:35:16 +02:00
parent 35f02d2891
commit 1ac9c4f057

View file

@ -25,12 +25,17 @@ stop_and_wait_dectmngr() {
}
start_service() {
local rfpi=
local opt_rfpi=
test $(db get hw.board.hasDect) = "0" && return
echo 1 > /sys/class/gpio/gpio14/value
rfpi=$(db -q get hw.board.dect_rfpi)
[ -n "$rfpi" -a ${#rfpi} -eq 14 ] && opt_rfpi="-rfpi $rfpi"
procd_open_instance
procd_set_param command $PROG -comname ttyH0 -log $LOG_PATH/dect-cmbs.log
procd_set_param command $PROG -comname ttyH0 -log $LOG_PATH/dect-cmbs.log $opt_rfpi
procd_set_param respawn 6 2 3
procd_set_param term_timeout 20
procd_set_param triggers asterisk