Ansible/templates/disk-power.rules

2 lines
117 B
Plaintext

ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", RUN+="/sbin/hdparm -B 127 -S 60 $env{DEVNAME}"