[dahdi-commits] tzafrir: branch tools/2.5 r10188 - /tools/branches/2.5/xpp/waitfor_xpds

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Wed Sep 7 02:11:18 CDT 2011


Author: tzafrir
Date: Wed Sep  7 02:11:14 2011
New Revision: 10188

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10188
Log:
xpp: waitfor_xpds: higher and configurable timeout

On several pathological cases we may need to wait more than 40 seconds.
Make that timeout configurable.

Modified:
    tools/branches/2.5/xpp/waitfor_xpds

Modified: tools/branches/2.5/xpp/waitfor_xpds
URL: http://svnview.digium.com/svn/dahdi/tools/branches/2.5/xpp/waitfor_xpds?view=diff&rev=10188&r1=10187&r2=10188
==============================================================================
--- tools/branches/2.5/xpp/waitfor_xpds (original)
+++ tools/branches/2.5/xpp/waitfor_xpds Wed Sep  7 02:11:14 2011
@@ -29,6 +29,7 @@
 # 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 @@
 
 # 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




More information about the dahdi-commits mailing list