smartctl
This commit is contained in:
parent
946b3d0e9f
commit
86884f4cb7
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ done
|
||||||
|
|
||||||
for device in $(smartctl --scan | cut -d' ' -f1)
|
for device in $(smartctl --scan | cut -d' ' -f1)
|
||||||
do
|
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
|
# hdd might be sleeping
|
||||||
if [[ $temp == ?(-)+([0-9]) ]]
|
if [[ $temp == ?(-)+([0-9]) ]]
|
||||||
|
|
Loading…
Reference in a new issue