xpp: waitfor_xpds: higher and configurable timeout
On several pathological cases we may need to wait more than 40 seconds. Make that timeout configurable. git-svn-id: http://svn.astersk.org/svn/dahdi/tools/trunk@10177 17933a7a-c749-41c5-a318-cba88f637d49
This commit is contained in:
parent
b23f3ca5a9
commit
3482a25b84
|
@ -29,6 +29,7 @@ set -e
|
||||||
# For lab testing
|
# For lab testing
|
||||||
mydir=`dirname $0`
|
mydir=`dirname $0`
|
||||||
PATH="${mydir}:${PATH}"
|
PATH="${mydir}:${PATH}"
|
||||||
|
XPP_WAIT_AB_TIMEOUT=80
|
||||||
|
|
||||||
[ -r /etc/dahdi/init.conf ] && . /etc/dahdi/init.conf
|
[ -r /etc/dahdi/init.conf ] && . /etc/dahdi/init.conf
|
||||||
|
|
||||||
|
@ -56,7 +57,7 @@ fi
|
||||||
|
|
||||||
# Wait for driver and first device
|
# Wait for driver and first device
|
||||||
echo -n 1>&2 "Astribanks detection "
|
echo -n 1>&2 "Astribanks detection "
|
||||||
tries=40
|
tries="$XPP_WAIT_AB_TIMEOUT"
|
||||||
while [ ! -e "/sys/bus/astribanks/devices/xbus-00" ]
|
while [ ! -e "/sys/bus/astribanks/devices/xbus-00" ]
|
||||||
do
|
do
|
||||||
if [ "$tries" -le 0 ]; then
|
if [ "$tries" -le 0 ]; then
|
||||||
|
|
Loading…
Reference in New Issue