aboutsummaryrefslogtreecommitdiffstats
path: root/run.sh
diff options
context:
space:
mode:
authorGergő J. Miklós2019-05-15 19:10:22 +0200
committerGergő J. Miklós2019-05-15 19:10:22 +0200
commitd150a9f31a81a7dc02f2359529a7351c743a0067 (patch)
treeb678ba9988fea60fed794eac9fac1754a605a072 /run.sh
parenta55a3a855af46a8385c1bdcf4083f48a2b2490ba (diff)
downloadi2sensors-d150a9f31a81a7dc02f2359529a7351c743a0067.tar.gz
i2sensors-d150a9f31a81a7dc02f2359529a7351c743a0067.zip
LM75 refactored and Working correctly
Diffstat (limited to 'run.sh')
-rw-r--r--run.sh19
1 files changed, 13 insertions, 6 deletions
diff --git a/run.sh b/run.sh
index a27b1fb..3baaa4c 100644
--- a/run.sh
+++ b/run.sh
@@ -1,20 +1,27 @@
#!/bin/bash
-make
+make all
+echo
+
+
if [ "$?" == "0" ]; then
#rsync -aHv -q -e "ssh" build/i2sensors-arm root@cb2:/tmp/i2sensors
- scp build/i2sensors-armhf root@cb2:/tmp/i2sensors
+ # scp -r 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'
+ ssh root@cb2 '/tmp/i2sensors conf_set 1 lm75 0x49 thys,-129.5'
+ #ssh root@cb2 '/tmp/i2sensors '
+ ssh root@cb2 '/tmp/i2sensors read_all 1 lm75 0x49'
- exit 0
+ # ssh root@cb2 'rm /tmp/i2sensors'
+
+ #make clean
else
exit 1
-fi \ No newline at end of file
+fi
+