aboutsummaryrefslogtreecommitdiffstats
path: root/run.sh
blob: 013205cb309be8953314049891cbbd939e1db1e9 (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,111.1'
    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