I have installed dietpi successfully and I would like to run the command “sh /root/start.sh” automatically when the pi is turned on.
start.sh currently contains one line, “mkdir /root/testdir”, just to test that it works.
I have tried typing “sudo dietpi-autostart”, which opens the auto start window. I selected Custom: /etc/dietpi/autostart.sh. The screen cleared for a second, no text, then back to the DietPi-AutoStart menu. I exited. I then ran “sudo nano /etc/dietpi/autostart.sh”, and in that file I have “sh /root/start.sh”. I Ctrl-O, Ctrl-X’d and rebooted. I logged in, then tried “ls”, and I don’t have the testdir folder. Ideas?