Changed the to so that the drives are enumberated properly.

This commit is contained in:
Cyteen 2017-11-09 16:48:03 +00:00
parent 23411be719
commit 9b805e4944
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ EMAIL=root
# You must initiate the first selective self test manually (-t select,0-${SIZE}) so smartd will know the slice size to test each day.
# To setup a full test of a 1TB disk within 20 days (one 50GB span each day), run this command once:
SIZE=99999999
for i in $(smartctl --scan-open | awk {'print $2'});
for i in $(smartctl --scan-open | awk {'print $1'});
do
echo ${i};
smartctl -t select,0-${SIZE} ${i}