summaryrefslogtreecommitdiff
path: root/zaptel.init
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-20 13:29:25 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-20 13:29:25 +0000
commit45b1feb65aa8308d491cb4138c0618d84e68b3d2 (patch)
tree7f9b03e3b52f718b16d11f5846a54a4ff0c6ac3b /zaptel.init
parenta615a5282f76a11ee577a2cc0ee3029b2ecf37e0 (diff)
* Set maximal zaptel udev timeout to 20 seconds.
* Allow overriding it from cwrcconfconfig file (and explain how). (From trunk r2909 - got accidentally commited there first). Merged revisions 2910 via svnmerge from https://origsvn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2911 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.init')
-rw-r--r--zaptel.init12
1 files changed, 11 insertions, 1 deletions
diff --git a/zaptel.init b/zaptel.init
index a0e5380..4bff1da 100644
--- a/zaptel.init
+++ b/zaptel.init
@@ -10,9 +10,19 @@
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
+# 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
#
@@ -158,7 +168,7 @@ case "$1" in
action "Loading zaptel framework: " modprobe zaptel ${ARGS}
fi
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`