#/bin/bash RET=0 sleep 2 echo " " echo " " echo " " echo "######################################################################################" echo "########################## EMMC Deivce Testing Start #################################" dd if=/dev/mmcblk0boot0 of=/tmp/.emmc_test.img bs=1M count=1 if [ $? == 0 ]; then echo "### Access the EMMC Device Successfully ###" else RET=1 echo "Error Notice: Access the EMMC Device failure ###" fi echo "######################################################################################" echo " " echo " " echo " " sleep 2 return ${RET}