From c17696c82de9c5486ad6d15444ef761f0a8dc63b Mon Sep 17 00:00:00 2001 From: tzafrir Date: Mon, 20 Aug 2007 13:20:08 +0000 Subject: * Set maximal zaptel udev timeout to 20 seconds. * Allow overriding it from cwrcconfconfig file (and explain how). git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2909 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- zaptel.init | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/zaptel.init b/zaptel.init index 92c431d..a54cb5a 100644 --- a/zaptel.init +++ b/zaptel.init @@ -10,11 +10,21 @@ initdir=/etc/init.d +# Don't edit the following values. Edit /etc/sysconfig/zaptel or +# /etc/defualt/zaptel (depending on your system) instead. + ZTCFG=/sbin/ztcfg ZTCFG_CMD="$ZTCFG" # e.g: for a custom zaptel.conf location +# The default syncer Astribank. Usually set automatically to a sane +# value by xpp_sync(1) if you have an Astribank. You can set this to an +# explicit Astribank (e.g: 01). XPP_SYNC=auto +# The maximal timeout (seconds) to wait for udevd to finish generating +# device nodes after the modules have loaded and before running ztcfg. +ZAP_DEV_TIMEOUT=20 + # # Determine which kind of configuration we're using # @@ -180,7 +190,7 @@ case "$1" in done xpp_startup echo -n "Waiting for zap to come online..." - TMOUT=10 # max secs to wait + TMOUT=$ZAP_DEV_TIMEOUT # max secs to wait while [ ! -d /dev/zap ] ; do sleep 1 TMOUT=`expr $TMOUT - 1` -- cgit v1.2.3