Update Model-Check.sh
Added var for Pi4's to be used in Installer.sh
This commit is contained in:
parent
b705f91725
commit
56fbec47f7
@ -32,6 +32,7 @@ fi
|
|||||||
if [[ $PiRevision == "a02082" ]] || [[ $PiRevision == "a22082" ]] || [[ $PiRevision == "a020d3" ]]; then
|
if [[ $PiRevision == "a02082" ]] || [[ $PiRevision == "a22082" ]] || [[ $PiRevision == "a020d3" ]]; then
|
||||||
if (whiptail --title "Warning" --yesno "You're running a $Model,\nthis script is tested for a Raspberry Pi 4 with at least 2GB memory.\n\nThe $Pi can lack the power or resources to run all of the installer options.\nIf you continue mounting the /tmp to RAM will be disabled.\n\nContinue anyway?" 13 83); then
|
if (whiptail --title "Warning" --yesno "You're running a $Model,\nthis script is tested for a Raspberry Pi 4 with at least 2GB memory.\n\nThe $Pi can lack the power or resources to run all of the installer options.\nIf you continue mounting the /tmp to RAM will be disabled.\n\nContinue anyway?" 13 83); then
|
||||||
UNSAFE=yes
|
UNSAFE=yes
|
||||||
|
PI4=no
|
||||||
else
|
else
|
||||||
clear
|
clear
|
||||||
exit
|
exit
|
||||||
@ -39,12 +40,14 @@ if [[ $PiRevision == "a02082" ]] || [[ $PiRevision == "a22082" ]] || [[ $PiRevis
|
|||||||
elif [[ $PiRevision == "a03111" ]]; then
|
elif [[ $PiRevision == "a03111" ]]; then
|
||||||
if (whiptail --title "Warning" --yesno "You're running a $Model,\nthis script is tested for a Raspberry Pi 4 with at least 2GB memory.\n\nIf you continue mounting the /tmp to RAM will be disabled.\n\nContinue anyway?" 12 78); then
|
if (whiptail --title "Warning" --yesno "You're running a $Model,\nthis script is tested for a Raspberry Pi 4 with at least 2GB memory.\n\nIf you continue mounting the /tmp to RAM will be disabled.\n\nContinue anyway?" 12 78); then
|
||||||
UNSAFE=yes
|
UNSAFE=yes
|
||||||
|
PI4=no
|
||||||
else
|
else
|
||||||
clear
|
clear
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
elif [[ $Model != "not supported!" ]]; then
|
elif [[ $Model != "not supported!" ]]; then
|
||||||
UNSAFE=no
|
UNSAFE=no
|
||||||
|
PI4=yes
|
||||||
else
|
else
|
||||||
whiptail --title "Error" --msgbox "Installation canceled! You're running a model that is not supported!" 8 78
|
whiptail --title "Error" --msgbox "Installation canceled! You're running a model that is not supported!" 8 78
|
||||||
clear
|
clear
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user