Deleted rc.local

Managed to delete rc.local.
How can I recreate it without reinstalling everything?

Can someone post the complete rc.local

DietPi does not use rc.local anymore, so there is nothing to recreate from our side
https://dietpi.com/forum/t/odroid-xu4-fan-speed/2077/3?u=jappe

Maybe it’s specific for your SBC. What SBC do you use?

Radxa Rock Pi 4C+

None of our images ship with /etc/rc.local, and if I see it correctly, Debian doesn’t either. When it still existed, it’s default content was exit 0, i.e. it did nothing.

If you want to run a oneshot script asynchronously at the end of the boot process, put it into /var/lib/dietpi/postboot.d.

1 Like