#/bin/bash SYS_FILE=/sys/devices/platform/11005000.i2c/i2c-1 RET=0 sleep 2 echo " " echo " " echo " " echo "######################################################################################" echo "######################## minipcie to sata Module Testing Start ##################" echo " " result=`lspci | grep "Device 1a0a:abcd" | wc -l` if [ ${result} -eq 1 ]; then echo "### Find one ASM1062 Serial ATA Controller from minipcie slots ###" else echo "Error Notice: Can not Find one ASM1062 Serial ATA Controller from minipcie slot" RET=1 fi echo " " echo "######################################################################################" echo " " echo " " echo " " sleep 2 return ${RET}