aboutsummaryrefslogtreecommitdiffstats
path: root/run.sh
blob: a27b1fb1f8662d332a14de3d0c85369788a3c0c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash


make 

if [ "$?" == "0" ]; then 

    #rsync -aHv -q -e "ssh"  build/i2sensors-arm root@cb2:/tmp/i2sensors
    scp  build/i2sensors-armhf root@cb2:/tmp/i2sensors

    ssh root@cb2  '/tmp/i2sensors read_one 1 lm75 0x49 0,-0.5'
    echo 
    ssh root@cb2 '/tmp/i2sensors read_all 1 lm75 0x49 '
    #ssh root@cb2 '/tmp/i2sensors list_all 1 lm75 0x49'

    exit 0

else 
    exit 1
fi