guowenxue
2021-04-21 8913f64d481a3da19d7e03b619605dc67eaf0591
tools/setup_wiringPi.sh
@@ -6,14 +6,20 @@
    gpio -v > /dev/null 
    if [ $? == 0 ] ; then
        echo "wiringPi library already installed, exit now..."
        return;
        #return;
    fi
    if [ ! -d wiringPi ] ; then
        git clone git://git.drogon.net/wiringPi
    if [ ! -d WiringPi ] ; then
        if [ -f WiringPi.tar.bz2 ] ; then
            echo "## decompress WiringPi libarary packet ##"
            tar -xjf WiringPi.tar.bz2
        else
            echo "## git clone WiringPi libarary source code ##"
            git clone https://github.com/WiringPi/WiringPi.git
        fi
    fi
    cd wiringPi
    cd WiringPi
    git pull origin
    ./build
}
@@ -24,7 +30,7 @@
}
install_systools
#install_systools
install_wiringpi