#4484 make release remove stop flag

This commit is contained in:
rootzoll 2024-03-21 13:50:32 +01:00
parent ff23ede250
commit 0e26641158
2 changed files with 5 additions and 3 deletions

View file

@ -121,13 +121,11 @@ cat $infoFile >> $logFile
# when a file 'stop' is on the sd card bootfs partition root - stop for manual provision
flagExists=$(ls /boot/firmware/stop | grep -c 'stop')
if [ "${flagExists}" == "1" ]; then
# remove flag
rm /boot/firmware/stop
# set state info
/home/admin/_cache.sh set state "stop"
/home/admin/_cache.sh set message "stopped for manual provision"
# log info
echo "INFO: 'bootstrap stopped - run release after manual provison'" >> ${logFile}
echo "INFO: 'bootstrap stopped - run command release after manual provison to remove stop flag'" >> ${logFile}"
exit 0
fi

View file

@ -3,6 +3,10 @@
# Just run this script once after a fresh sd card build
# to prepare the image for release as a downloadable sd card image
# remove stop flag (if exists)
echo "deleting stop flag .."
sudo rm /boot/firmware/stop 2>/dev/null
# cleaning logs
echo "deleting raspiblitz & system logs .."
sudo rm /var/log/* 2>/dev/null