interruptable readall
This commit is contained in:
parent
4462d98567
commit
d8ad4fa376
@ -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 ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user