12 lines
258 B
Bash
12 lines
258 B
Bash
|
#!/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
|