summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/multitech')
-rwxr-xr-xrecipes-bsp/multitech/mts-io/lora-led-updater6
-rw-r--r--recipes-bsp/multitech/mts-io_1.5.9.bb (renamed from recipes-bsp/multitech/mts-io_1.5.8.bb)0
2 files changed, 4 insertions, 2 deletions
diff --git a/recipes-bsp/multitech/mts-io/lora-led-updater b/recipes-bsp/multitech/mts-io/lora-led-updater
index 637ee2e..0e38310 100755
--- a/recipes-bsp/multitech/mts-io/lora-led-updater
+++ b/recipes-bsp/multitech/mts-io/lora-led-updater
@@ -1,11 +1,13 @@
#!/bin/bash
while true; do
+ # If driver is unloaded, stop.
+ [[ -d /sys/devices/platform/mts-io ]] || exit 0
fuser /dev/spidev0.0 > /dev/null
if [ $? == 0 ]; then
- mts-io-sysfs store led-lora 1
+ mts-io-sysfs store led-lora 1 >/dev/null 2>&1
else
- mts-io-sysfs store led-lora 0
+ mts-io-sysfs store led-lora 0 >/dev/null 2>&1
fi
sleep 5
done
diff --git a/recipes-bsp/multitech/mts-io_1.5.8.bb b/recipes-bsp/multitech/mts-io_1.5.9.bb
index 85b3de1..85b3de1 100644
--- a/recipes-bsp/multitech/mts-io_1.5.8.bb
+++ b/recipes-bsp/multitech/mts-io_1.5.9.bb