wanpipe/build/etc/wanpipe/wancfg_zaptel/templates/smgbri_start_script_addon

25 lines
376 B
Plaintext

cnt=0
max_delay=30
for ((i=0;i<$max_delay;i++))
do
if [ -e /dev/wanpipe ]; then
break;
fi
echo "Waiting for TDM API device /dev/wanpipe ($i/$max_delay)..."
sleep 2
done
if [ ! -e /dev/wanpipe ]; then
echo
echo "Error: Sangoma TDM API device failed to come up";
echo "Possible Cause: UDEV not installed!";
echo
exit 1
fi
sleep 1
smg_ctrl start