Hi,
I did find it in other distro.
1. Make file
/etc/systemd/system/rc-local.service with the content
Код: Выделить всё
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
2. Make rights
Код: Выделить всё
chmod a+X /etc/systemd/system/rc-local.service
3. Make file
/etc/rc.local with the content
Код: Выделить всё
#!/bin/sh
/sbin/hdparm -B 254 /dev/sda
exit 0
4. Make rights
5. Run command (under root)
6. Run command (under root)
7. Restart PC
Have a good day
René