guowenxue
2019-07-30 c6dff0f738ecd7b1d8f7857dbf3b49fb23ee9b29
Update setup_wiringPi shell script
1 files modified
35 ■■■■■ changed files
tools/setup_wiringPi.sh 35 ●●●●● patch | view | raw | blame | history
tools/setup_wiringPi.sh
@@ -1,17 +1,30 @@
#!/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
function install_wiringpi()
{
    gpio -v > /dev/null
    if [ $? == 0 ] ; then
        echo "wiringPi library already installed, exit now..."
        return;
    fi
if [ ! -d wiringPi ] ; then
    git clone git://git.drogon.net/wiringPi
fi
    if [ ! -d wiringPi ] ; then
        git clone git://git.drogon.net/wiringPi
    fi
cd wiringPi
git pull origin
./build
    cd wiringPi
    git pull origin
    ./build
}
function install_systools()
{
    sudo apt-get install -y  libssl-dev openssl
}
install_systools
install_wiringpi