[Asterisk-cvs] zaptel zaptel.init,1.5,1.5.2.1
russell at lists.digium.com
russell at lists.digium.com
Sat Jan 8 15:14:51 CST 2005
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv8060
Modified Files:
Tag: v1-0
zaptel.init
Log Message:
wait for /dev/zap (bug #3138)
Index: zaptel.init
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.init,v
retrieving revision 1.5
retrieving revision 1.5.2.1
diff -u -d -r1.5 -r1.5.2.1
--- zaptel.init 14 Jul 2003 19:25:44 -0000 1.5
+++ zaptel.init 8 Jan 2005 21:19:18 -0000 1.5.2.1
@@ -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