Chemin complet pour smartctl

This commit is contained in:
John Doe 2021-01-30 16:12:46 +01:00
parent 9fcc81044f
commit afd9be884b
1 changed files with 2 additions and 2 deletions

View File

@ -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