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

Modified Files:
        zaptel.init 
Log Message:
Make zaptel.init automatically load ztdummy if none of the hardware
drivers find any Zaptel hardware (bug #3886)


Index: zaptel.init
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.init,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- zaptel.init 18 Feb 2005 01:31:01 -0000      1.10
+++ zaptel.init 1 Apr 2005 04:40:27 -0000       1.11
@@ -85,6 +85,11 @@
                        echo -n " $x"
                fi
        done
+       sleep 3
+       if [ ! -e /proc/zaptel/1 ]
+               echo "No functioning zap hardware found in /proc/zaptel, 
loading ztdummy"
+               modprobe ztdummy >& /dev/null
+       fi
        if [ $system = debian ]; then
            echo -n "Running ztcfg: " 
            /sbin/ztcfg >& /dev/null && echo -n "done"

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to