[svn-commits] tzafrir: tools/trunk r10177 - /tools/trunk/xpp/waitfor_xpds
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Sep 5 04:05:54 CDT 2011
Author: tzafrir
Date: Mon Sep 5 04:05:48 2011
New Revision: 10177
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10177
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/trunk/xpp/waitfor_xpds
Modified: tools/trunk/xpp/waitfor_xpds
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/waitfor_xpds?view=diff&rev=10177&r1=10176&r2=10177
==============================================================================
--- tools/trunk/xpp/waitfor_xpds (original)
+++ tools/trunk/xpp/waitfor_xpds Mon Sep 5 04:05:48 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 svn-commits
mailing list