guowenxue
2019-07-16 185663a2a65086e73b3e15821bd2fb6344ebd475
add wiringpi library setup shell script
1 files added
17 ■■■■■ changed files
tools/setup_wiringPi.sh 17 ●●●●● patch | view | raw | blame | history
tools/setup_wiringPi.sh
New file
@@ -0,0 +1,17 @@
#!/bin/bash
# This shell script used to install wiringPi library
gpio -v > /dev/null
if [ $? == 0 ] ; then
    echo "wiringPi library already installed, exit now..."
    exit;
fi
if [ ! -d wiringPi ] ; then
    git clone git://git.drogon.net/wiringPi
fi
cd wiringPi
git pull origin
./build