From 1243c0f0f2bde1abd0f79b4ab7ea3ced680c9706 Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 1 Sep 2017 15:39:05 -0500 Subject: Update the mts-io scripts for no radio case. --- recipes-bsp/multitech/mts-io/mts-io.mtcap.init | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'recipes-bsp/multitech/mts-io/mts-io.mtcap.init') 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() { -- cgit v1.2.3