Update auto-fix-qortal.sh
added raspberry-pi-specific modifications to both skip auto-fix-visible setup and add/verify cron entries for pi auto-fix and auto-start.
This commit is contained in:
parent
dab44e3ddb
commit
22e3164f25
@ -54,7 +54,6 @@ echo "${YELLOW} Checking system RAM ... $totalm System RAM ... Configuring syste
|
||||
|
||||
|
||||
|
||||
|
||||
echo "${YELLOW} Checking hash of qortal.jar on liocal machine VS newest released qortal.jar on github ${NC}\n"
|
||||
|
||||
cd ~/qortal
|
||||
@ -115,6 +114,16 @@ else
|
||||
cp ~/qortal/new-scripts/auto-fix-qortal.sh .
|
||||
fi
|
||||
|
||||
if command -v raspi-config >/dev/null 2>&1 ; then
|
||||
echo "${YELLOW} Raspberry Pi machine detected, creating pi cron and exiting...${NC}\n"
|
||||
curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/auto-fix-cron
|
||||
crontab auto-fix-cron
|
||||
rm auto-fix-cron
|
||||
exit 1
|
||||
else echo "${YELLOW} Not a Raspberry pi machine, continuing...${NC}\n"
|
||||
|
||||
fi
|
||||
|
||||
if command -v gnome-terminal >/dev/null 2>&1 ; then
|
||||
|
||||
echo "${YELLOW} Setting up auto-fix-visible on GUI-based system... first, creating new crontab entry without auto-fix-startup... ${NC}\n"
|
||||
@ -136,4 +145,3 @@ fi
|
||||
|
||||
sleep 10
|
||||
exit 1
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user