guowenxue
2019-07-31 4deb51ffc4dd4588183aed82bd7877909ba2130e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# This shell script used to install wiringPi library
 
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
 
    cd wiringPi 
    git pull origin
    ./build
}
 
function install_systools()
{
    sudo apt-get install -y  libssl-dev openssl
}
 
 
install_systools
 
install_wiringpi