This commit is contained in:
mwiegand 2021-10-30 22:06:39 +02:00
parent 946b3d0e9f
commit 86884f4cb7

View file

@ -29,7 +29,7 @@ done
for device in $(smartctl --scan | cut -d' ' -f1)
do
temp=$(smartctl -n idle -A --json=c $device | jq .temperature.current)
temp=$(smartctl -n standby -A --json=c $device | jq .temperature.current)
# hdd might be sleeping
if [[ $temp == ?(-)+([0-9]) ]]