Commit cea8d9cf authored by Vitaly Lipatov's avatar Vitaly Lipatov

hd: small fixes

parent 3054b647
...@@ -18,8 +18,8 @@ FORCE= ...@@ -18,8 +18,8 @@ FORCE=
LIST= LIST=
[ "$1" = "--fix" ] && { TESTONLY=$1 ; shift ; } [ "$1" = "--fix" ] && { TESTONLY=$1 ; shift ; }
[ "$1" = "--force" ] && FORCE=$1 [ "$1" = "--force" ] && { FORCE=$1 ; shift ; }
[ "$1" = "--list" ] && LIST=$1 [ "$1" = "--list" ] && { LIST=$1 ; shift ; }
[ "$1" = "--dev" ] && DEV=$2 && shift 2 [ "$1" = "--dev" ] && DEV=$2 && shift 2
[ "$1" = "--sector" ] && SECTOR=$2 && shift 2 [ "$1" = "--sector" ] && SECTOR=$2 && shift 2
[ "$1" = "--block" ] && BLOCK=$2 && shift 2 [ "$1" = "--block" ] && BLOCK=$2 && shift 2
......
#!/bin/sh
#while true ; do badblocks -sv /dev/sda $@ ; sleep 1 ; ./fix_disk.sh --fix --force ; done
while true ; do
#badblocks -sv /dev/sda $@
sleep 300
./fix_disk.sh --fix
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment