Last active
September 23, 2018 21:29
-
-
Save jondkelley/1cee756ed3853aef40af0b106db75c88 to your computer and use it in GitHub Desktop.
example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ARC="x86_64" | |
install_driver () { | |
arg1=$1 | |
arg2=$2 | |
arg3=$3 | |
arg4=$4 | |
echo $arg1 ${arg2} $arg3 $arg4 | |
} | |
###if [ ! -e /home/pi/libftd2xx.so ]; | |
if [ -e /home/pi/libftd2xx.so ]; | |
then | |
##echo "install drtiver-----------------" | |
##install_driver text1 text2 text3 text4 | |
###else | |
echo "" | |
echo "It looks like the driver is already installed. If this is wrong, see what '/usr/local/lib/libftd2xx.so' is up to. Skipping FTDI Driver install. " | |
if [ "$ARC" = "x86_64" ]; | |
then | |
echo "x64" | |
#tar xfvz libftd2xx-x86_64-1.4.6.tgz | |
#cd release/build | |
#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" ]; | |
then | |
echo "ARM" | |
#tar xfvz libftd2xx-arm-v7-hf-1.4.8.gz | |
#cd release/build | |
#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" = "x32" ]; | |
then | |
echo "x32" | |
#tar xfvz libftd2xx-i386-1.4.6.tgz | |
#cd release/build | |
#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 | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment