diff options
Diffstat (limited to 'recipes-bsp/multitech/mts-io/mts-io.mtcap.init')
-rw-r--r-- | recipes-bsp/multitech/mts-io/mts-io.mtcap.init | 11 |
1 files changed, 6 insertions, 5 deletions
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() { |