From 84c2f3e62bf01b86315e537b14c6eab575466ff3 Mon Sep 17 00:00:00 2001 From: ShaYmez <76499782+ShaYmez@users.noreply.github.com> Date: Thu, 8 Jul 2021 00:46:50 +0100 Subject: [PATCH] Update ambe-debian-installer --- ambe-debian-installer | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ambe-debian-installer b/ambe-debian-installer index 13bbeb8..72005ad 100755 --- a/ambe-debian-installer +++ b/ambe-debian-installer @@ -1,3 +1,4 @@ + #!/bin/bash #A tool to install AMBE server. #This is essentially a scripted version of: @@ -11,8 +12,7 @@ # systemctl start ambed #to start ambed # ambed logs are part of /var/log/messages #Lets begin------------------------------------------------------------------------------------------------- -WHO=$(whoami) -if [ "$WHO" != "root" ]; +if [ "$EUID" -ne 0 ]; then echo "" echo "You Must be root to run this script!!" @@ -21,7 +21,7 @@ fi if [ ! -e "/etc/debian_version" ] then echo "" - echo "This script is only tested in Debian 8,9 and x64 cpu Arch. for now." + echo "This script is only tested in Debian 8,9,10. for now." exit 0 fi DIRDIR=$(pwd) @@ -54,10 +54,10 @@ then cp libftd2xx.* /usr/local/lib chmod 0755 /usr/local/lib/libftd2xx.so.1.4.6 ln -sf /usr/local/lib/libftd2xx.so.1.4.6 /usr/local/lib/libftd2xx.so - elif [ "$ARC" = "armv71" ]; + elif [ "$ARC" = "armv7l" ]; then wget $ARM - tar libftd2xx-arm-v7-hf-1.4.22.tgz + tar zxf libftd2xx-arm-v7-hf-1.4.22.tgz cd release/build cp libftd2xx.* /usr/local/lib chmod 0755 /usr/local/lib/libftd2xx.so.1.4.22