[Asterisk-cvs] zaptel zaptel.init,1.5.2.2,1.5.2.3

russell at lists.digium.com russell at lists.digium.com
Sun Feb 20 15:47:21 CST 2005


Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv27225

Modified Files:
      Tag: v1-0
	zaptel.init 
Log Message:
wait for /dev/zap after zaptel, but before the rest of the modules (bug #3615)


Index: zaptel.init
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.init,v
retrieving revision 1.5.2.2
retrieving revision 1.5.2.3
diff -u -d -r1.5.2.2 -r1.5.2.3
--- zaptel.init	14 Jan 2005 02:30:49 -0000	1.5.2.2
+++ zaptel.init	20 Feb 2005 21:46:00 -0000	1.5.2.3
@@ -43,13 +43,7 @@
 	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 @@
 			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=$?




More information about the svn-commits mailing list