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
Saturday, January 23, 2016
Subscribe to:
Posts (Atom)