Install packages: rfkill, hdparm
rfkill to enable wifi
Custom systemd unit for hdparm via systemd After=sleep.target:
/etc/systemd/system/myhdparm.service
[Unit]
Description=set hdparm for sda
After=default.target sleep.target
[Service]
type=oneshot
ExecStart=/etc/systemd/system/sethdparm.sh
[Install]
WantedBy=default.target sleep.target
/etc/systemd/system/sethdparm.sh
#!/bin/bash
sleep 2
hdparm -B 253 /dev/sda
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment