I am asking this because i have openSUSE installed on an external HDD and i don’t use my internal HDD that often, so i don’t need the drive spinning all the time.
Using openSUSE LEAP 15 is this the right way to set hdparm setting so they are not reversed after reboot, shutdown or sleep
/etc/systemd/system/hdparm-boot.service
[Unit]
Description=hdparm boot
[Service]
Type=simple
ExecStart=/sbin/hdparm -B127 /dev/X
[Install]
WantedBy=multi-user.target
/etc/systemd/system/hdparm-suspend.service
[Unit]
Description=Local system resume actions
After=suspend.target hybrid-sleep.target hibernate.target
[Service]
Type=simple
ExecStart=/sbin/hdparm -B127 /dev/X
[Install]
WantedBy=sleep.target
or is there any other way, because i can’t find
/etc/sysconfig/ide
nor
/etc/init.d/boot.local