From 4983241b2aa6e2bb156a9c6a5686690e187cb674 Mon Sep 17 00:00:00 2001 From: Radexito Date: Wed, 22 Sep 2021 19:48:14 +0200 Subject: [PATCH] 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 --- install-gui.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/install-gui.sh b/install-gui.sh index b966061e91e3..edf00584b24d 100755 --- a/install-gui.sh +++ b/install-gui.sh @@ -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."