[Pkg-voip-commits] [dahdi-tools] 43/285: xpp: waitfor_xpds: higher and configurable timeout
tzafrir at debian.org
tzafrir at debian.org
Thu Jul 7 19:18:26 UTC 2016
This is an automated email from the git hooks/post-receive script.
tzafrir pushed a commit to branch master
in repository dahdi-tools.
commit 3482a25b84d8be2d8f1db67bc1e0d3f9c6985c11
Author: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Date: Mon Sep 5 09:05:48 2011 +0000
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
---
xpp/waitfor_xpds | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/dahdi-tools.git
More information about the Pkg-voip-commits
mailing list