filljffs2.sh 249 B

123456789101112131415
  1. #!/bin/bash
  2. # Pass following cmd line:
  3. # 1st - file to copy
  4. # 2nd - file to copy to
  5. # 3rd - time to sleep between copies
  6. while [ $(( 1 )) -gt $(( 0 )) ]
  7. do
  8. cp $1 $2
  9. rm $2
  10. df |grep mtd > /dev/console
  11. echo "sleeping $3"
  12. sleep $3
  13. done