From 7893fa123087328d5721fa27e9ee45130ba5da96 Mon Sep 17 00:00:00 2001 From: Gergő J. Miklós Date: Sun, 12 May 2019 12:37:47 +0200 Subject: hmc5883 added + some refactoring --- run.sh | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'run.sh') diff --git a/run.sh b/run.sh index c78d362..013205c 100644 --- a/run.sh +++ b/run.sh @@ -1,17 +1,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 -make - -#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' -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 -exit 0 \ No newline at end of file +else + exit 1 +fi \ No newline at end of file -- cgit v1.2.3