[svn-commits] tzafrir: branch 1.4 r1558 - in /branches/1.4/xpp: init_card_3_23 init_card_4_23

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Nov 6 12:07:31 MST 2006


Author: tzafrir
Date: Mon Nov  6 13:07:29 2006
New Revision: 1558

URL: http://svn.digium.com/view/zaptel?rev=1558&view=rev
Log:
Fixes for card init scripts from rev 2633:
  * Don't log card init scripts to /tmp/results .
  * Document how to trace, though.
  * init_card_4_23: don't re-open the slics file.  

Modified:
    branches/1.4/xpp/init_card_3_23
    branches/1.4/xpp/init_card_4_23

Modified: branches/1.4/xpp/init_card_3_23
URL: http://svn.digium.com/view/zaptel/branches/1.4/xpp/init_card_3_23?rev=1558&r1=1557&r2=1558&view=diff
==============================================================================
--- branches/1.4/xpp/init_card_3_23 (original)
+++ branches/1.4/xpp/init_card_3_23 Mon Nov  6 13:07:29 2006
@@ -45,7 +45,13 @@
 export XPP_BASE=/proc/xpp
 LOGGER="logger -s -t $me"
 
-exec 2> /tmp/results
+## If you wish to trace this script:
+#exec 2> /tmp/xpp_init_$XPD_NAME
+## Altenativly, if you have multiple XPDs:
+#exec 2> /tmp/xpp_init_$XBUS_NAME_$XPD_NAME
+#set -x
+
+# redirect script output to the "slics" (registers command) file:
 exec 1> "$XPP_BASE/$XPD_BUS/$XPD_NAME/slics"
 
 $LOGGER -p kern.info "$XPD_BUS/$XPD_NAME: Calibrating '$0'"

Modified: branches/1.4/xpp/init_card_4_23
URL: http://svn.digium.com/view/zaptel/branches/1.4/xpp/init_card_4_23?rev=1558&r1=1557&r2=1558&view=diff
==============================================================================
--- branches/1.4/xpp/init_card_4_23 (original)
+++ branches/1.4/xpp/init_card_4_23 Mon Nov  6 13:07:29 2006
@@ -42,13 +42,16 @@
 INIT_DIR=`dirname $0`
 XPP_BASE=/proc/xpp
 export XPP_BASE
-SLICS="$XPP_BASE/$XPD_BUS/$XPD_NAME/slics"
 LOGGER="logger -s -t $me"
 
-# set -x
-exec 2> /tmp/results #FIXME: temporary debugging file
+## If you wish to trace this script:
+#exec 2> /tmp/xpp_init_$XPD_NAME
+## Altenativly, if you have multiple XPDs:
+#exec 2> /tmp/xpp_init_$XBUS_NAME_$XPD_NAME
+#set -x
+
 # redirect script output to the "slics" (registers command) file:
-exec 1> $SLICS
+exec 1> "$XPP_BASE/$XPD_BUS/$XPD_NAME/slics"
 
 $LOGGER -p kern.info "$XPD_BUS/$XPD_NAME: Initializing '$0'"
 
@@ -62,7 +65,7 @@
 	. $INIT_DIR/init_fxo_modes
 	fi
 	# Our register numbers are HEXADECIMAL!
-	cat <<EOF >$SLICS
+	cat <<EOF
 31 WD 10 $reg16
 31 WD 1A $reg26
 31 WD 1E $reg30



More information about the svn-commits mailing list