[dahdi-commits] kpfleming: tools/trunk r4850 - in /tools/trunk: dahdi.init modules.sample

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Wed Aug 27 12:13:15 CDT 2008


Author: kpfleming
Date: Wed Aug 27 12:13:10 2008
New Revision: 4850

URL: http://svn.digium.com/view/dahdi?view=rev&rev=4850
Log:
remove some silly echo statement constructions in the init script

clean up the modules.sample file to have proper lists of cards supported by each module and remove reference to dahdi_dummy since the init script takes care of loading that module

Modified:
    tools/trunk/dahdi.init
    tools/trunk/modules.sample

Modified: tools/trunk/dahdi.init
URL: http://svn.digium.com/view/dahdi/tools/trunk/dahdi.init?view=diff&rev=4850&r1=4849&r2=4850
==============================================================================
--- tools/trunk/dahdi.init (original)
+++ tools/trunk/dahdi.init Wed Aug 27 12:13:10 2008
@@ -150,7 +150,7 @@
   start)
 	cat "/etc/dahdi/modules" | grep "^[^\#]" | {
 		foundone=false
-		echo -ne $"Loading DAHDI hardware modules:\n"
+		echo "Loading DAHDI hardware modules:"
 		while read line; do
 			foundone=true
 			if [ $system = debian ]; then
@@ -164,7 +164,7 @@
 				action "  ${line}: " modprobe $line 
 			fi
 		done
-		echo -ne $"\n"
+		echo ""
 		if ! $foundone; then
 			echo "There aren't any DAHDI hardware modules specified to "
 			echo "load.  Please update /etc/dahdi/modules in order to "
@@ -172,7 +172,9 @@
 			exit 1
 		fi
 	}
+
 	TMOUT=$DAHDI_DEV_TIMEOUT # max secs to wait
+
 	while [ ! -d /dev/dahdi ] ; do
  		sleep 1
 		TMOUT=`expr $TMOUT - 1`
@@ -181,7 +183,6 @@
 			exit 1
 		fi
 	done
-	sleep 3 # TODO: remove it
 
 	xpp_startup
 
@@ -214,7 +215,7 @@
 	# Unload drivers
 	#shutdown_dynamic # FIXME: needs test from someone with dynamic spans
 	if [ $system = debian ]; then
-		echo -ne $"Unloading DAHDI hardware modules: " 
+		echo -n "Unloading DAHDI hardware modules: " 
 		if unload_module dahdi; then
 			echo -n "done"
 		else

Modified: tools/trunk/modules.sample
URL: http://svn.digium.com/view/dahdi/tools/trunk/modules.sample?view=diff&rev=4850&r1=4849&r2=4850
==============================================================================
--- tools/trunk/modules.sample (original)
+++ tools/trunk/modules.sample Wed Aug 27 12:13:10 2008
@@ -7,37 +7,35 @@
 # Anything after a '#' is ignore, likewise trailing and leading
 # whitespaces and empty lines.
 
-# TE405P - Quad Span T1/E1 Card (5v version)
-# TE410P - Quad Span T1/E1 Card (3.3v version)
+# Digium TE205P/TE207P/TE210P/TE212P: PCI dual-port T1/E1/J1
+# Digium TE405P/TE407P/TE410P/TE412P: PCI quad-port T1/E1/J1
+# Digium TE220: PCI-Express dual-port T1/E1/J1
+# Digium TE420: PCI-Express quad-port T1/E1/J1
 wct4xxp
 
-# * TE120P - Single Span T1/E1 Card
+# Digium TE120P: PCI single-port T1/E1/J1
+# Digium TE121: PCI-Express single-port T1/E1/J1
+# Digium TE122: PCI single-port T1/E1/J1
 wcte12xp
 
-# T100P - Single Span T1 Card
-# E100P - Single Span E1 Card
+# Digium T100P: PCI single-port T1
+# Digium E100P: PCI single-port E1
 wct1xxp
 
-# TE110P - Single Span T1/E1 Card
+# Digium TE110P: PCI single-port T1/E1/J1
 wcte11xp
 
-# TDM2400P - Modular FXS/FXO interface (1-24 ports)
-# TDM410P  - Modular FXS/FXO interface (4 ports)
-# TDM800P  - Modular FXS/FXO interface (8 ports)
+# Digium TDM2400P/AEX2400: up to 24 analog ports
+# Digium TDM800P/AEX800: up to 8 analog ports
+# Digium TDM410P/AEX410: up to 4 analog ports
 wctdm24xxp
 
 # X100P - Single port FXO interface
 # X101P - Single port FXO interface 
 wcfxo
 
-# TDM400P - Modular FXS/FXO interface (1-4 ports)
+# Digium TDM400P: up to 4 analog ports
 wctdm
 
-# DAHDI timing only interface. Disabled by default, as it will be loaded
-# by the init.d script in case no hardware is found.
-#
-# If you have no hardware, enable it and disable others.
-#dahdi_dummy 
-
-# Xorcom Astribank Device
+# Xorcom Astribank Devices
 xpp_usb




More information about the dahdi-commits mailing list