mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-29 04:52:32 +02:00
#4484 make release remove stop flag
This commit is contained in:
@@ -121,13 +121,11 @@ cat $infoFile >> $logFile
|
|||||||
# when a file 'stop' is on the sd card bootfs partition root - stop for manual provision
|
# when a file 'stop' is on the sd card bootfs partition root - stop for manual provision
|
||||||
flagExists=$(ls /boot/firmware/stop | grep -c 'stop')
|
flagExists=$(ls /boot/firmware/stop | grep -c 'stop')
|
||||||
if [ "${flagExists}" == "1" ]; then
|
if [ "${flagExists}" == "1" ]; then
|
||||||
# remove flag
|
|
||||||
rm /boot/firmware/stop
|
|
||||||
# set state info
|
# set state info
|
||||||
/home/admin/_cache.sh set state "stop"
|
/home/admin/_cache.sh set state "stop"
|
||||||
/home/admin/_cache.sh set message "stopped for manual provision"
|
/home/admin/_cache.sh set message "stopped for manual provision"
|
||||||
# log info
|
# 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
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@@ -3,6 +3,10 @@
|
|||||||
# Just run this script once after a fresh sd card build
|
# Just run this script once after a fresh sd card build
|
||||||
# to prepare the image for release as a downloadable sd card image
|
# 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
|
# cleaning logs
|
||||||
echo "deleting raspiblitz & system logs .."
|
echo "deleting raspiblitz & system logs .."
|
||||||
sudo rm /var/log/* 2>/dev/null
|
sudo rm /var/log/* 2>/dev/null
|
||||||
|
Reference in New Issue
Block a user