comment
This commit is contained in:
parent
d8f887a4eb
commit
3d070abca7
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,9 @@ do
|
||||||
output=$(smartctl -n standby -i $device)
|
output=$(smartctl -n standby -i $device)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
unset power_level
|
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:")
|
if $(echo $output | grep -q "Power mode is:")
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue