linux-fax-stack/docker/t38modem/start.sh

12 lines
258 B
Bash
Raw Normal View History

2024-12-20 14:53:12 +00:00
#!/usr/bin/env bash
exec "${PREFIX}/services/t38modem.sh" /dev/ttyT38 &
sleep 5
for i in $(seq "${T38MODEM_MODEM_COUNT}"); do
PORT="$(("${T38MODEM_START_PORT}" + i - 1))"
exec "${PREFIX}/services/socat.sh" "/dev/ttyT38-${i}" "${PORT}" &
done
wait