1
0
Fork 0
scripts-admin-quickndirty-p.../systemd-units/hdparm-custom.service

16 lines
374 B
SYSTEMD
Raw Permalink Normal View History

[Unit]
Description=Custom hdparm settings
ConditionPathExists=/sbin/hdparm
[Service]
# -M = accoustic (128=quiet, 254=fast)
ExecStart=/sbin/hdparm -M 128 /dev/sdb
ExecStart=/sbin/hdparm -M 128 /dev/sdc
# -S = standy timeout (252 = 21 minutes)
ExecStart=/sbin/hdparm -S 252 /dev/sdb
ExecStart=/sbin/hdparm -S 252 /dev/sdc
Type=oneshot
[Install]
WantedBy=multi-user.target