interruptable readall

This commit is contained in:
Ben Gras 2005-09-01 16:17:46 +00:00
parent 4462d98567
commit d8ad4fa376

View File

@ -367,17 +367,19 @@ echo "Scanning disk for bad blocks. Hit CTRL+C to stop the scan if you are"
echo "sure that there can not be any bad blocks. Otherwise just wait." echo "sure that there can not be any bad blocks. Otherwise just wait."
trap ': nothing;echo' 2 trap ': nothing;echo' 2
echo "" echo ""
echo "Scanning /dev/$root for bad blocks:" echo "Scanning /dev/$root for bad blocks:"
readall -b /dev/$root | sh readall -b /dev/$root | sh
echo ""
echo "Scanning /dev/$home for bad blocks:" echo "Scanning /dev/$home for bad blocks:"
readall -b /dev/$home | sh readall -b /dev/$home | sh
trap 2
echo "" echo ""
echo "Scanning /dev/$usr for bad blocks:" echo "Scanning /dev/$usr for bad blocks:"
readall -b /dev/$usr | sh readall -b /dev/$usr | sh
trap 2 trap 2
echo "" echo ""