From ad50a9c88e13c350aa8c34b41ffc1fd4869a529b Mon Sep 17 00:00:00 2001 From: crowetic Date: Sat, 19 Oct 2024 17:21:23 -0700 Subject: [PATCH] modified pi variables --- auto-fix-qortal.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/auto-fix-qortal.sh b/auto-fix-qortal.sh index 715de56..b8a92f6 100644 --- a/auto-fix-qortal.sh +++ b/auto-fix-qortal.sh @@ -11,6 +11,9 @@ CYAN='\033[0;36m' # Cyan WHITE='\033[0;37m' # White NC='\033[0m' # No Color +PI_32_DETECTED=false +PI_64_DETECTED=false + # Function to update the script initial_update() { if [ ! -f ~/auto_fix_updated ]; then @@ -58,10 +61,10 @@ check_for_pi() { if [ "$(uname -m | grep 'armv7l')" != "" ]; then echo "${WHITE} 32bit ARM detected, using ARM 32bit compatible modified start script${NC}\n" - 32_BIT_PI_DETECTED=true + PI_32_DETECTED=true else echo "${WHITE} 64bit ARM detected, proceeding accordingly...${NC}\n" - 64_BIT_PI_DETECTED=true + PI_64_DETECTED=true fi curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/start-modified-memory-args.sh curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/auto-fix-cron @@ -298,7 +301,7 @@ check_hash_update_qortal() { check_for_GUI() { if [ -n "$DISPLAY" ]; then echo "${CYAN} Machine is logged in via GUI, setting up auto-fix-visible for GUI-based machines... ${NC}\n" - if [ "$32_BIT_PI_DETECTED" = true ] || [ "$64_BIT_PI_DETECTED" = true ]; then + if [ "${PI_32_DETECTED}" = true ] || [ "${PI_64_DETECTED}" = true ]; then echo "${YELLOW} Pi machine detected with GUI, skipping autostart setup for GUI and setting cron jobs instead...${NC}\n" setup_pi_cron else