diff options
author | John Klug <john.klug@multitech.com> | 2017-09-01 15:39:05 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2017-09-14 17:08:24 -0500 |
commit | 1243c0f0f2bde1abd0f79b4ab7ea3ced680c9706 (patch) | |
tree | 78a591767c7bdc423a98bcf8d05e5a69809b7247 /recipes-bsp/multitech | |
parent | b4da3b4105e9205c87b344ce5abdb6befd54f5de (diff) | |
download | meta-multitech-1243c0f0f2bde1abd0f79b4ab7ea3ced680c9706.tar.gz meta-multitech-1243c0f0f2bde1abd0f79b4ab7ea3ced680c9706.tar.bz2 meta-multitech-1243c0f0f2bde1abd0f79b4ab7ea3ced680c9706.zip |
Update the mts-io scripts for no radio case.
Diffstat (limited to 'recipes-bsp/multitech')
-rw-r--r-- | recipes-bsp/multitech/mts-io/mts-io.init | 2 | ||||
-rw-r--r-- | recipes-bsp/multitech/mts-io/mts-io.mtcap.init | 11 | ||||
-rw-r--r-- | recipes-bsp/multitech/mts-io/radio-reset.init | 6 | ||||
-rw-r--r-- | recipes-bsp/multitech/mts-io_1.5.15.bb (renamed from recipes-bsp/multitech/mts-io_1.5.14.bb) | 0 |
4 files changed, 11 insertions, 8 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init index b670cef..fd87c35 100644 --- a/recipes-bsp/multitech/mts-io/mts-io.init +++ b/recipes-bsp/multitech/mts-io/mts-io.init @@ -187,7 +187,7 @@ case $1 in fi /bin/busybox usleep $USLPTIME reset_array - mts-io-sysfs store radio-reset 0 + [ -w /sys/devices/platform/mts-io/radio-reset ] && mts-io-sysfs store radio-reset 0 mfser_init if ! reset_path $RS9113RST ; then ((fail++)) diff --git a/recipes-bsp/multitech/mts-io/mts-io.mtcap.init b/recipes-bsp/multitech/mts-io/mts-io.mtcap.init index e047c40..2e41124 100644 --- a/recipes-bsp/multitech/mts-io/mts-io.mtcap.init +++ b/recipes-bsp/multitech/mts-io/mts-io.mtcap.init @@ -46,11 +46,12 @@ cell_init() { # remove /dev/modem_at[0,1] symlinks rm -f /dev/modem_at[0,1] - # power down the cellular chip gracefully - mts-io-sysfs store radio-power 0 - - # power up the cellular chip - mts-io-sysfs store radio-power 1 + if [ -w /sys/devices/platform/mts-io/radio-power] ; then + # power down the cellular chip gracefully + mts-io-sysfs store radio-power 0 + # power up the cellular chip + mts-io-sysfs store radio-power 1 + fi } start_lora_led_updater() { diff --git a/recipes-bsp/multitech/mts-io/radio-reset.init b/recipes-bsp/multitech/mts-io/radio-reset.init index 3ce07c7..00bbe2b 100644 --- a/recipes-bsp/multitech/mts-io/radio-reset.init +++ b/recipes-bsp/multitech/mts-io/radio-reset.init @@ -7,8 +7,10 @@ ENABLED="yes" case $1 in stop) - echo "Resetting cellular radio" - mts-io-sysfs store radio-reset 0 + if [ -w /sys/devices/platform/mts-io/radio-reset ] ; then + mts-io-sysfs store radio-reset 0 + echo "Resetting cellular radio" + fi ;; *) diff --git a/recipes-bsp/multitech/mts-io_1.5.14.bb b/recipes-bsp/multitech/mts-io_1.5.15.bb index 85b3de1..85b3de1 100644 --- a/recipes-bsp/multitech/mts-io_1.5.14.bb +++ b/recipes-bsp/multitech/mts-io_1.5.15.bb |