From 40686d7c2ef4657d514769df38f48148654b8324 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Fri, 1 Apr 2005 04:40:27 +0000 Subject: Make zaptel.init automatically load ztdummy if none of the hardware drivers find any Zaptel hardware (bug #3886) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@612 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- zaptel.init | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'zaptel.init') diff --git a/zaptel.init b/zaptel.init index 4ed8583..f917d03 100755 --- a/zaptel.init +++ b/zaptel.init @@ -85,6 +85,11 @@ case "$1" in 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" -- cgit v1.2.3