[zaptel-commits] tzafrir: trunk r1564 - in /trunk/xpp: ./
init_card_3_23 init_card_4_23
zaptel-commits at lists.digium.com
zaptel-commits at lists.digium.com
Mon Nov 6 14:19:16 MST 2006
Author: tzafrir
Date: Mon Nov 6 15:19:15 2006
New Revision: 1564
URL: http://svn.digium.com/view/zaptel?rev=1564&view=rev
Log:
r1558 at boole: tzafrir | 2006-11-06 21:07:29 +0200
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:
trunk/xpp/ (props changed)
trunk/xpp/init_card_3_23
trunk/xpp/init_card_4_23
Propchange: trunk/xpp/
------------------------------------------------------------------------------
--- svk:merge (original)
+++ svk:merge Mon Nov 6 15:19:15 2006
@@ -1,3 +1,3 @@
283159da-0705-0410-b60c-f2062b4bb6ad:/components/xpp-zaptel/trunk/xpp:2600
-f558416c-6c06-0410-9f27-dde2687782d0:/branches/1.4/xpp:1557
+f558416c-6c06-0410-9f27-dde2687782d0:/branches/1.4/xpp:1558
f558416c-6c06-0410-9f27-dde2687782d0:/team/tzafrir/xpp_1.2/xpp:1554
Modified: trunk/xpp/init_card_3_23
URL: http://svn.digium.com/view/zaptel/trunk/xpp/init_card_3_23?rev=1564&r1=1563&r2=1564&view=diff
==============================================================================
--- trunk/xpp/init_card_3_23 (original)
+++ trunk/xpp/init_card_3_23 Mon Nov 6 15:19:15 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: trunk/xpp/init_card_4_23
URL: http://svn.digium.com/view/zaptel/trunk/xpp/init_card_4_23?rev=1564&r1=1563&r2=1564&view=diff
==============================================================================
--- trunk/xpp/init_card_4_23 (original)
+++ trunk/xpp/init_card_4_23 Mon Nov 6 15:19:15 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 zaptel-commits
mailing list