#!/bin/sh

WARNINGS=/WebManager/warnings.txt
NEWWARNINGS=/WebManager/newwarnings.txt

# Check the checksums of the HDLC tables in DSP external memory

ErrCode=0

if [ $# -ne 5 ]; then
echo Wrong number of args for dsp_chk
logger Wrong number of args for dsp_chk
exit
fi

if [ $2 != $3 -o $4 != $5 ]; then
warn=`date "+%d/%m/%Y %H:%M rcS: "`
warn=$warn"External RAM Checksum error for DSP$1"
echo $warn
logger $warn
echo $warn >> $WARNINGS
echo $warn >> $NEWWARNINGS
/SpliceCom/BootError $ErrCode
exit
fi
