#! /bin/bash ring=-r0 card=-c0 echo "0xaaaaaaaa" > scsnr.txt echo "0xaaaaaaaa" >> scsnr.txt echo Scanning SCSN Slaves: \"$SCSN_SLV_LIST\" for SLV in $SCSN_SLV_LIST ; do echo Slave: $SLV pci2trap -noaddr $card $ring -slv $SLV -gsa 0xf000 -gea 0xf0d2 -gb tmpscsn cat tmpscsn >> scsnr.txt done echo "0x00000000" >> scsnr.txt rm tmpscsn # check if the new data differs from the old diff -q scsnr.txt scs00000001.txt mv scsnr.txt scs00000001.txt