Update auto-fix-qortal.sh
ADDED additional pi4 checks and start script modifications therein.
This commit is contained in:
parent
86be731782
commit
c74481b694
@ -139,14 +139,22 @@ if command -v raspi-config >/dev/null 2>&1 ; then
|
|||||||
mv start-modified-memory-args.sh ~/qortal/start.sh
|
mv start-modified-memory-args.sh ~/qortal/start.sh
|
||||||
check_qortal
|
check_qortal
|
||||||
else
|
else
|
||||||
echo "${WHITE} Machine is not ARM 32bit, adding correct start script and continuing...${NC}\n"
|
echo "${WHITE} Machine is not ARM 32bit, checking RAM amount and adding correct start script...${NC}\n"
|
||||||
|
totalm=$(free -m | awk '/^Mem:/{print $2}')
|
||||||
|
echo "${YELLOW} configuring auto-fix cron...${NC}\n"
|
||||||
curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/auto-fix-cron
|
curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/auto-fix-cron
|
||||||
crontab auto-fix-cron
|
crontab auto-fix-cron
|
||||||
rm -rf auto-fix-cron
|
rm -rf auto-fix-cron
|
||||||
curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/start-6001-to-16000m.sh
|
|
||||||
mv start-6001*.sh ~/qortal/start.sh
|
if [ "$totalm" -le 6000 ]; then
|
||||||
chmod +x ~/qortal/*.sh
|
echo "${WHITE} 4GB 64bit pi detected, grabbing correct start script and continuing...${NC}\n"
|
||||||
check_qortal
|
curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/4GB-start.sh && mv 4GB-start.sh ~/qortal/start.sh && chmod +x ~/qortal/start.sh
|
||||||
|
check_qortal
|
||||||
|
else
|
||||||
|
echo "${WHITE} 8GB 64bit pi detected, grabbing correct start script and continuing...${NC}\n"
|
||||||
|
curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/start-6001-to-16000m.sh && mv start-6001-to-16000m.sh ~/qortal/start.sh && chmod +x ~/qortal/start.sh
|
||||||
|
check_qortal
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else echo "${YELLOW} Not a Raspberry pi machine, continuing...${NC}\n"
|
else echo "${YELLOW} Not a Raspberry pi machine, continuing...${NC}\n"
|
||||||
check_memory
|
check_memory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user