测试nand flash的小脚本

测试flash用的小脚本, 留存学习
 

#!/bin/bash


T1="Yaffs file system!"
T2="It running at System Memory!"
T4=0

if [ -f /mnt/lost+found ];then
    echo $T1
else
    echo $T2
fi

while true; do
    T3=0

    while [ $T3 -le 1000 ]; do
        if [ $T3 -eq 1000 ];
        then
            echo "File Number = $T3 Delete Count = $T4"
            let "T4=$T4+1"
            echo "Test Count = $T4">log.txt
            rm test*
            break
        else
            cp /test/a.out ./test"$T3"
            let "T3=$T3+1"
        fi
    done
done

你可能感兴趣的:(测试,脚本,File,Flash,delete,System)