[Asterisk-cvs] zaptel zaptel.init,1.6,1.7

markster at lists.digium.com markster at lists.digium.com
Wed Jan 5 21:45:50 CST 2005


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

Modified Files:
	zaptel.init 
Log Message:
Fix for FC3 (bug #3138)


Index: zaptel.init
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.init,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- zaptel.init	6 Nov 2004 16:40:42 -0000	1.6
+++ zaptel.init	6 Jan 2005 03:50:46 -0000	1.7
@@ -50,6 +50,16 @@
 		fi
 	done
 	echo
+	TMOUT=10 # max secs to wait
+	while [ ! -d /dev/zap ] ; do
+ 		sleep 1
+		TMPUT=`expr $TMOUT - 1`
+		if [ $TMOUT -eq 0 ] ; then
+			echo "Error: missing /dev/zap!"
+			exit 1
+		fi
+	done
+	sleep 1;
 	action "Running ztcfg: " /sbin/ztcfg
 	RETVAL=$?
 




More information about the svn-commits mailing list