summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech
diff options
context:
space:
mode:
authorBrandon Bayer <bbayer@multitech.com>2016-09-21 15:09:57 -0500
committerBrandon Bayer <bbayer@multitech.com>2016-09-21 15:09:57 -0500
commitafa4bbe0e313b2f24e95dc99aa3504b6ee052dab (patch)
tree2d812f60d851b2a7615588c5b82a3ccfaebb1738 /recipes-bsp/multitech
parent46547d067ad959904e01a5067edd57549e482c6a (diff)
parent9f6497b3edd39742fb85b3ad70c0f25251a18cf1 (diff)
downloadmeta-multitech-afa4bbe0e313b2f24e95dc99aa3504b6ee052dab.tar.gz
meta-multitech-afa4bbe0e313b2f24e95dc99aa3504b6ee052dab.tar.bz2
meta-multitech-afa4bbe0e313b2f24e95dc99aa3504b6ee052dab.zip
Merge 'mirror/dev-mtp' into internal-dev
Diffstat (limited to 'recipes-bsp/multitech')
-rw-r--r--recipes-bsp/multitech/mts-io/mts-io.mtp.init10
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)