Chemin complet pour smartctl
This commit is contained in:
parent
9fcc81044f
commit
afd9be884b
|
@ -19,7 +19,7 @@ done
|
|||
|
||||
for i in "${OUTPUT[@]}" #Selection des disques ayant SMART a Enabled
|
||||
do
|
||||
if smartctl -i $i | grep "SMART support is: Enabled" >/dev/null 2>&1; then
|
||||
if /usr/sbin/smartctl -i $i | grep "SMART support is: Enabled" >/dev/null 2>&1; then
|
||||
DISKS+=$i
|
||||
fi
|
||||
done
|
||||
|
@ -36,7 +36,7 @@ do
|
|||
done
|
||||
ARRAY_TEMPS+=$DUREE_TEST
|
||||
/usr/sbin/smartctl -t long "$i" > /dev/null 2>&1
|
||||
MODEL=($(smartctl -i /dev/sda | grep "Device Model:" | sed "s/Device Model: //g"))
|
||||
MODEL=($(/usr/sbin/smartctl -i /dev/sda | grep "Device Model:" | sed "s/Device Model: //g"))
|
||||
echo "Le selftest pour le disque ${MODEL[@]} prendra $DUREE_TEST minutes."
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue