aboutsummaryrefslogtreecommitdiff
path: root/tests/jittertest/filljffs2.sh
blob: 5d42ab50f946e0f09d82cbdb1517f9f935bbc90f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# Pass following cmd line:
# 1st - file to copy
# 2nd - file to copy to
# 3rd - time to sleep between copies

while [ $(( 1 )) -gt $(( 0 )) ]
do
   cp $1 $2
   rm $2
   df |grep mtd > /dev/console
   echo "sleeping $3"
   sleep $3
done