I use a raspbian buster light with a service that start a start.sh script on boot, which launches xinit.
In the start.sh script i make a curl download to a server which has a /boot/config.txt
The curl download and writing to the config.txt works perfect.
Code: Select all
var=$(curl "SERVERURL" -G) if [[ $var ]]; then echo "$var" > /boot/config.txt; sleep 5; sudo reboot; fi
But the "sudo reboot" afterwards didn`t work.
The screen goes blank and the raspi is not reachable anymore.
If i unplug the power and plug it back, the raspi boots normal with the new config.txt.
So the new config.txt can`t be the problem.
If i comment out the "sudo reboot" and do the reboot with a SSH-Login after the start.sh script it works.
So somehow the reboot command within my start.sh script makes a problem.
Maybe someone has a tip what could be the problem?