Hi,
I borked my installation by auto enabling Wireguard every time at boot which is not letting me SSH into the system or access any of the services running on my device.
I’d like to run a simple command at boot that would disable Wireguard from running automatically. Then after rebooting the device, I would be able to SSH into it like normal. This would need to be done by editing a config file on the MicroSD that runs the command after all services have been started.
How do I do this?
Thanks.
EDIT: Solved my own problem.
Opened up the ‘postboot’ file on my SD card in the dietpi folder, added a line right after the ‘start services’ command.
Turned on the Pi. Waited at least 5 minutes.
Turned off the Pi. Turned it back on.
Tried SSH and voilá it works and Wireguard is off thanks to the command I got it to run after starting all services when the boot finished. Phew.