diff options
Diffstat (limited to 'recipes-bsp')
-rw-r--r-- | recipes-bsp/multitech/mts-io/mts-io.mtp.init | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.mtp.init b/recipes-bsp/multitech/mts-io/mts-io.mtp.init index f8df7ff..d8f8564 100644 --- a/recipes-bsp/multitech/mts-io/mts-io.mtp.init +++ b/recipes-bsp/multitech/mts-io/mts-io.mtp.init @@ -1,8 +1,13 @@ #!/bin/bash -hardware_init() { +lora_init() { # reset lora chip mts-io-sysfs store lora-reset 0 +} + +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 @@ -15,7 +20,8 @@ case $1 in start) echo "Loading mts-io module" modprobe mts_io - hardware_init & + lora_init + cell_init & ;; stop) |