The old friend
rc.local has been in Debian 10 deprecated. Using Debian 10 Buster we can find a new way to keep using a rc.local startup script, though.
In this example we want to disable bluetooth, as every time the system boots up is bluetooth enabled.
We create a systemd unit, that will launch a oneshot script located in
[Service] Type=oneshot RemainAfterExit=yes ExecStart=/usr/local/bin/rc.local [Install] WantedBy=multi-user.target [Unit] Wants=bluetooth.service After=bluetooth.service
Then we can enable it running:
systemctl enable local-starttasks.service
To finish the example, this is the content of our new
#!/bin/bash echo disable > /proc/acpi/ibm/bluetooth