summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrussell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-02-20 21:46:00 +0000
committerrussell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-02-20 21:46:00 +0000
commitca620534702002ce0c2ed70e58abbb30a5ead36a (patch)
treeacd7d40dba84bf4555c58dadda2a11c82f4794c7
parentafa98a0ba9b80b8ff43f5fb84ffb5755dfcff171 (diff)
wait for /dev/zap after zaptel, but before the rest of the modules (bug #3615)
git-svn-id: http://svn.digium.com/svn/zaptel/branches/v1-0@592 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-xzaptel.init16
1 files changed, 9 insertions, 7 deletions
diff --git a/zaptel.init b/zaptel.init
index 2a9dca4..0112c9f 100755
--- a/zaptel.init
+++ b/zaptel.init
@@ -43,13 +43,7 @@ case "$1" in
rmmod wcfxsusb >& /dev/null
rmmod audio >& /dev/null
action "Loading zaptel framework: " modprobe zaptel
- echo -n "Loading zaptel hardware modules: "
- for x in $MODULES; do
- if insmod ${x} ${ARGS} >& /dev/null; then
- echo -n "$x "
- fi
- done
- echo
+ echo -n "Waiting for zap to come online ..."
TMOUT=10 # max secs to wait
while [ ! -d /dev/zap ] ; do
sleep 1
@@ -59,6 +53,14 @@ case "$1" in
exit 1
fi
done
+ echo "OK"
+ echo -n "Loading zaptel hardware modules: "
+ for x in $MODULES; do
+ if insmod ${x} ${ARGS} >& /dev/null; then
+ echo -n "$x "
+ fi
+ done
+ echo
sleep 1;
action "Running ztcfg: " /sbin/ztcfg
RETVAL=$?