diff options
Diffstat (limited to 'xpp/init_card_3_23')
-rwxr-xr-x | xpp/init_card_3_23 | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/xpp/init_card_3_23 b/xpp/init_card_3_23 index 5698484..3f07578 100755 --- a/xpp/init_card_3_23 +++ b/xpp/init_card_3_23 @@ -46,10 +46,21 @@ XPP_BASE=/proc/xpp export XPP_BASE LOGGER="logger -s -t $me" +ZAPTEL_BOOT_DEBIAN=${ZAPTEL_BOOT_DEBIAN:-/etc/default/zaptel} +ZAPTEL_BOOT_FEDORA=${ZAPTEL_BOOT_FEDORA:-/etc/sysconfig/zaptel} + +# read default configuration from /etc/default/zaptel +if [ -r $ZAPTEL_BOOT_DEBIAN ]; then . $ZAPTEL_BOOT_DEBIAN; fi +if [ -r $ZAPTEL_BOOT_FEDORA ]; then . $ZAPTEL_BOOT_FEDORA; fi + +if [ "$DEBUG_CALIBRATION"=1 ]; then + LOGGER=":" +fi + # Always redirect stderr somewhere, otherwise the shell script will die # when it tries to do I/O related stuff on closed file descriptor. # Our default is to throw it down the bit-bucket. -exec 2> /dev/null +exec 2> /dev/console ## If you wish to trace this script: #exec 2> /tmp/xpp_init_$XPD_NAME ## Altenativly, if you have multiple XBUS'es: @@ -65,8 +76,7 @@ $LOGGER -p kern.info "$XPD_BUS/$XPD_NAME: Calibrating '$0'" $LOGGER -p kern.info "$XPD_BUS/$XPD_NAME: Continue '$0'" -sed -e 's/[;#].*$//' -e '/^[ ]*$/d' <<END_OF_FILE - +echo " # Change SLICs states to "Open state"s (Off,all transfers tristated to avoid data collision), Voltage sense 31 WD 40 00 @@ -169,8 +179,7 @@ sed -e 's/[;#].*$//' -e '/^[ ]*$/d' <<END_OF_FILE #31 WD 4A 34 #31 WD 4B 10 - -END_OF_FILE +" | sed -e 's/[;#].*$//' -e '/^[ ]*$/d' $LOGGER -p kern.info "$XPD_BUS/$XPD_NAME: Ending '$0'" exit 0 |