diff options
author | John Klug <john.klug@multitech.com> | 2017-02-28 17:47:33 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2017-02-28 17:47:33 -0600 |
commit | 9d58a28208d250af88d966c4131d055c21b3510b (patch) | |
tree | b8403a8eb87872286b1eedb38a7cc365da45bc8b | |
parent | a5f152a20ca1fee3404d213864b9ba895b15e37b (diff) | |
download | meta-multitech-9d58a28208d250af88d966c4131d055c21b3510b.tar.gz meta-multitech-9d58a28208d250af88d966c4131d055c21b3510b.tar.bz2 meta-multitech-9d58a28208d250af88d966c4131d055c21b3510b.zip |
Prevent lots of error messages if mts-io is stopped (removed)
-rwxr-xr-x | recipes-bsp/multitech/mts-io/lora-led-updater | 6 | ||||
-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 |