Added RPI4_64bit support for GUI installation script (#8159)

* Added support for Raspberry Pi 4 64Bit

* Added support for Raspberry Pi 4 64Bit

* Added support for Raspberry Pi 4 64Bit
This commit is contained in:
Radexito 2021-09-22 19:48:14 +02:00 committed by GitHub
parent b72f2c50af
commit 4983241b2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,17 @@ if [ "$(uname)" = "Linux" ]; then
if type apt-get; then
# Debian/Ubuntu
UBUNTU=true
sudo apt-get install -y npm nodejs libxss1
# Check if we are running a Raspberry PI 4
if [ "$(uname -m)" = "aarch64" ] \
&& [ "$(uname -n)" = "raspberrypi" ]; then
# Check if NodeJS & NPM is installed
type npm >/dev/null 2>&1 || {
echo >&2 "Please install NODEJS&NPM manually"
}
else
sudo apt-get install -y npm nodejs libxss1
fi
elif type yum && [ ! -f "/etc/redhat-release" ] && [ ! -f "/etc/centos-release" ] && [ ! -f /etc/rocky-release ] && [ ! -f /etc/fedora-release ]; then
# AMZN 2
echo "Installing on Amazon Linux 2."