mirror of
https://github.com/ShaYmez/ambed-debian-installer.git
synced 2024-11-23 00:08:37 -05:00
Update ambe-debian-installer
Update FTDI drivers
This commit is contained in:
parent
ff96f47590
commit
25382b7f72
@ -27,10 +27,10 @@ fi
|
|||||||
DIRDIR=$(pwd)
|
DIRDIR=$(pwd)
|
||||||
LOCAL_IP=$(ip a | grep inet | grep "eth0\|en" | awk '{print $2}' | tr '/' ' ' | awk '{print $1}')
|
LOCAL_IP=$(ip a | grep inet | grep "eth0\|en" | awk '{print $2}' | tr '/' ' ' | awk '{print $1}')
|
||||||
ARC=$(lscpu | grep Arch | awk '{print $2}')
|
ARC=$(lscpu | grep Arch | awk '{print $2}')
|
||||||
X64=https://ftdichip.com/wp-content/uploads/2021/09/libftd2xx-x86_64-1.4.24.tgz
|
X64=https://ftdichip.com/wp-content/uploads/2022/07/libftd2xx-x86_64-1.4.27.tgz
|
||||||
X32=https://www.ftdichip.com/Drivers/D2XX/Linux/libftd2xx-i386-1.4.22.tgz
|
X32=https://ftdichip.com/wp-content/uploads/2022/07/libftd2xx-x86_32-1.4.27.tgz
|
||||||
ARMv7=https://ftdichip.com/wp-content/uploads/2021/09/libftd2xx-arm-v7-hf-1.4.24.tgz
|
ARMv7=https://ftdichip.com/wp-content/uploads/2022/07/libftd2xx-arm-v7-hf-1.4.27.tgz
|
||||||
ARMv8=https://ftdichip.com/wp-content/uploads/2021/09/libftd2xx-arm-v8-1.4.24.tgz
|
ARMv8=https://ftdichip.com/wp-content/uploads/2022/07/libftd2xx-arm-v8-1.4.27.tgz
|
||||||
AMBINSTDIR=/root/reflector-install-files/ambed
|
AMBINSTDIR=/root/reflector-install-files/ambed
|
||||||
DEP="wget git build-essential g++ figlet nano"
|
DEP="wget git build-essential g++ figlet nano"
|
||||||
GITREPO=https://github.com/LX3JL/xlxd.git
|
GITREPO=https://github.com/LX3JL/xlxd.git
|
||||||
@ -50,35 +50,35 @@ then
|
|||||||
if [ "$ARC" = "x86_64" ];
|
if [ "$ARC" = "x86_64" ];
|
||||||
then
|
then
|
||||||
wget $X64
|
wget $X64
|
||||||
tar xfvz libftd2xx-x86_64-1.4.24.tgz
|
tar -xvf lib*
|
||||||
cd release/build
|
cd release/build
|
||||||
cp libftd2xx.* /usr/local/lib
|
cp lib* /usr/local/lib
|
||||||
chmod 0755 /usr/local/lib/libftd2xx.so.1.4.24
|
chmod 0755 /usr/local/lib/libftd2xx.so.1.4.27
|
||||||
ln -sf /usr/local/lib/libftd2xx.so.1.4.24 /usr/local/lib/libftd2xx.so
|
ln -sf /usr/local/lib/libftd2xx.so.1.4.27 /usr/local/lib/libftd2xx.so
|
||||||
elif [ "$ARC" = "armv7l" ];
|
elif [ "$ARC" = "armv7l" ];
|
||||||
then
|
then
|
||||||
wget $ARMv7
|
wget $ARMv7
|
||||||
tar zxf libftd2xx-arm-v7-hf-1.4.24.tgz
|
tar zxf libftd2xx-arm-v7-hf-1.4.27.tgz
|
||||||
cd release/build
|
cd release/build
|
||||||
cp libftd2xx.* /usr/local/lib
|
cp libftd2xx.* /usr/local/lib
|
||||||
chmod 0755 /usr/local/lib/libftd2xx.so.1.4.24
|
chmod 0755 /usr/local/lib/libftd2xx.so.1.4.27
|
||||||
ln -sf /usr/local/lib/libftd2xx.so.1.4.24 /usr/local/lib/libftd2xx.so
|
ln -sf /usr/local/lib/libftd2xx.so.1.4.27 /usr/local/lib/libftd2xx.so
|
||||||
elif [ "$ARC" = "aarch64" ];
|
elif [ "$ARC" = "aarch64" ];
|
||||||
then
|
then
|
||||||
wget $ARMv8
|
wget $ARMv8
|
||||||
tar zxf libftd2xx-arm-v8-1.4.24.tgz
|
tar zxf libftd2xx-arm-v8-1.4.27.tgz
|
||||||
cd release/build
|
cd release/build
|
||||||
cp libftd2xx.* /usr/local/lib
|
cp libftd2xx.* /usr/local/lib
|
||||||
chmod 0755 /usr/local/lib/libftd2xx.so.1.4.24
|
chmod 0755 /usr/local/lib/libftd2xx.so.1.4.27
|
||||||
ln -sf /usr/local/lib/libftd2xx.so.1.4.24 /usr/local/lib/libftd2xx.so
|
ln -sf /usr/local/lib/libftd2xx.so.1.4.24 /usr/local/lib/libftd2xx.so
|
||||||
elif [ "$ARC" = "i686" ];
|
elif [ "$ARC" = "i686" ];
|
||||||
then
|
then
|
||||||
wget $X32
|
wget $X32
|
||||||
tar xfvz libftd2xx-i386-1.4.22.tgz
|
tar xfvz libftd2xx-i386-1.4.27.tgz
|
||||||
cd release/build
|
cd release/build
|
||||||
cp libftd2xx.* /usr/local/lib
|
cp libftd2xx.* /usr/local/lib
|
||||||
chmod 0755 /usr/local/lib/libftd2xx.so.1.4.22
|
chmod 0755 /usr/local/lib/libftd2xx.so.1.4.27
|
||||||
ln -sf /usr/local/lib/libftd2xx.so.1.4.22 /usr/local/lib/libftd2xx.so
|
ln -sf /usr/local/lib/libftd2xx.so.1.4.27 /usr/local/lib/libftd2xx.so
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "------------------------------------------------------------------------------"
|
echo "------------------------------------------------------------------------------"
|
||||||
|
Loading…
Reference in New Issue
Block a user