5 while getopts "C:aTlM" opt; do
17 echo "Running fake fsck on $device"
19 declare -a maxpass=(30 5 2 30 60)
21 for pass in {1..5}; do
22 maxprogress=${maxpass[$((pass-1))]}
23 for (( current=0; current<=${maxprogress}; current++)); do
24 echo "$pass $current $maxprogress $device">&$fd