summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-09-07 07:11:14 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-09-07 07:11:14 +0000
commit51008188155c3d617da65beb45915343ea83217f (patch)
tree63a3b7a34fec7421d5cb7a8e87049de7ddd51293
parent7e468324181ab1049a2b8a5082c0c0eff6ddf772 (diff)
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.asterisk.org/svn/dahdi/tools/branches/2.5@10188 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rwxr-xr-xxpp/waitfor_xpds3
1 files changed, 2 insertions, 1 deletions
diff --git a/xpp/waitfor_xpds b/xpp/waitfor_xpds
index 352a250..067a128 100755
--- a/xpp/waitfor_xpds
+++ b/xpp/waitfor_xpds
@@ -29,6 +29,7 @@ set -e
# For lab testing
mydir=`dirname $0`
PATH="${mydir}:${PATH}"
+XPP_WAIT_AB_TIMEOUT=80
[ -r /etc/dahdi/init.conf ] && . /etc/dahdi/init.conf
@@ -56,7 +57,7 @@ fi
# Wait for driver and first device
echo -n 1>&2 "Astribanks detection "
-tries=40
+tries="$XPP_WAIT_AB_TIMEOUT"
while [ ! -e "/sys/bus/astribanks/devices/xbus-00" ]
do
if [ "$tries" -le 0 ]; then