This commit is contained in:
mwiegand 2021-10-31 17:50:29 +01:00
parent d8f887a4eb
commit 3d070abca7

View file

@ -7,6 +7,9 @@ do
output=$(smartctl -n standby -i $device)
exitstatus=$?
unset power_level
# maybe find out power state by trying through all states and check when
# it stops exiting 2, sarting with deepest.
if $(echo $output | grep -q "Power mode is:")
then