summarylogtreecommitdiffstats
path: root/systemd-hddapm.install
diff options
context:
space:
mode:
Diffstat (limited to 'systemd-hddapm.install')
-rw-r--r--systemd-hddapm.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/systemd-hddapm.install b/systemd-hddapm.install
new file mode 100644
index 000000000000..d6e751c8c49c
--- /dev/null
+++ b/systemd-hddapm.install
@@ -0,0 +1,20 @@
+post_install() {
+cat << EOF
+
+Edit '/etc/udev/rules.d/10-hddapm.rules' to configure the devices to change and
+the APM level to set for each one.
+Use 'udevadm info -a /dev/sdx' to obtain information about the attributes of the
+drives you wish to control.
+
+You have to manually enable the unit to have the APM level restored after
+suspend/hibernate/hybrid-sleep. You can do it with: 'systemctl enable hddapm'.
+
+If you wish to set the APM level early during boot, add hddapm to your HOOKS
+line in '/etc/mkinitcpio.conf' and regenerate your initramfs.
+
+EOF
+}
+
+post_upgrade() {
+ post_install
+}