diff --git a/home.admin/_bootstrap.sh b/home.admin/_bootstrap.sh index 274fdb385..182185727 100755 --- a/home.admin/_bootstrap.sh +++ b/home.admin/_bootstrap.sh @@ -123,8 +123,12 @@ raspi_bootdir="/boot/firmware" ###################################### # STOP flags - for manual provision -# 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 (raspberrypi) flagExists=$(ls ${raspi_bootdir}/stop 2>/dev/null | grep -c 'stop') +# when a file 'stop' is in the /home/admin directory - stop for manual provision (laptop) +if [ "${flagExists}" = "0" ]; then + flagExists=$(ls /home/admin/stop 2>/dev/null | grep -c 'stop') +fi if [ "${flagExists}" = "1" ]; then localip=$(hostname -I | awk '{print $1}') /home/admin/_cache.sh set state "stop" diff --git a/home.admin/config.scripts/blitz.release.sh b/home.admin/config.scripts/blitz.release.sh index 8db1b78b3..407874cce 100755 --- a/home.admin/config.scripts/blitz.release.sh +++ b/home.admin/config.scripts/blitz.release.sh @@ -27,6 +27,7 @@ sudo systemctl stop background.scan.service # remove stop flag (if exists) echo "deleting stop flag .." sudo rm ${raspi_bootdir}/stop 2>/dev/null +sudo rm /home/admin/stop 2>/dev/null # cleaning logs echo "deleting raspiblitz & system logs .."