[svn-commits] sruffell: tools/trunk r6710 - /tools/trunk/dahdi.init

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jun 23 18:46:26 CDT 2009


Author: sruffell
Date: Tue Jun 23 18:46:23 2009
New Revision: 6710

URL: http://svn.asterisk.org/svn-view/dahdi?view=rev&rev=6710
Log:
Revert "dahdi.init: Define a default span configuration for digital cards."

This reverts commit r6708.

Modified:
    tools/trunk/dahdi.init

Modified: tools/trunk/dahdi.init
URL: http://svn.asterisk.org/svn-view/dahdi/tools/trunk/dahdi.init?view=diff&rev=6710&r1=6709&r2=6710
==============================================================================
--- tools/trunk/dahdi.init (original)
+++ tools/trunk/dahdi.init Tue Jun 23 18:46:23 2009
@@ -200,16 +200,6 @@
 		modprobe dahdi_dummy 2> /dev/null
 	fi
 
-	conf_file=/etc/dahdi/system.conf
-	temp_conf_file=""
-	if [ `dahdi_scan | grep "^type=" | sed -n 1p | grep "^type=digital"` ]; then
-		if [ "`cat $conf_file | grep "^span=1"`" = "" ]; then
-			temp_conf_file=`mktemp /tmp/tmp.dahdi_system_conf.XXX`
-			echo "span=1,1,0,esf,b8zs" > $temp_conf_file
-			DAHDI_CFG_CMD="$DAHDI_CFG -c $temp_conf_file"
-		fi
-	fi
-
 	if [ $system = debian ]; then
 	    echo -n "Running dahdi_cfg: "
 	    $DAHDI_CFG_CMD 2> /dev/null && echo -n "done"
@@ -218,10 +208,6 @@
 	    action "Running dahdi_cfg: " $DAHDI_CFG_CMD
 	fi
 	RETVAL=$?
-
-	if [ -f $temp_conf_file ]; then
-		rm $temp_conf_file;
-	fi
 
 	if [ "$LOCKFILE" != '' ]; then
 		[ $RETVAL -eq 0 ] && touch $LOCKFILE




More information about the svn-commits mailing list