summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech/mts-io/mts-io.mtp.init
diff options
context:
space:
mode:
authorBrandon Bayer <bbayer@multitech.com>2016-10-18 11:45:00 -0500
committerBrandon Bayer <bbayer@multitech.com>2016-10-18 11:45:00 -0500
commit47ae54aa38a710ae6c20985cf0f9814c0c76b00b (patch)
tree8e72b1256c83a3381ae061bcc060bb2088c007cb /recipes-bsp/multitech/mts-io/mts-io.mtp.init
parent541d5ad7b06d21778fea2b7728a81c58793b93fb (diff)
downloadmeta-multitech-47ae54aa38a710ae6c20985cf0f9814c0c76b00b.tar.gz
meta-multitech-47ae54aa38a710ae6c20985cf0f9814c0c76b00b.tar.bz2
meta-multitech-47ae54aa38a710ae6c20985cf0f9814c0c76b00b.zip
mtp:fix: reset ethernet on boot
Diffstat (limited to 'recipes-bsp/multitech/mts-io/mts-io.mtp.init')
-rw-r--r--recipes-bsp/multitech/mts-io/mts-io.mtp.init6
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.mtp.init b/recipes-bsp/multitech/mts-io/mts-io.mtp.init
index d8f8564..f247a9b 100644
--- a/recipes-bsp/multitech/mts-io/mts-io.mtp.init
+++ b/recipes-bsp/multitech/mts-io/mts-io.mtp.init
@@ -16,10 +16,16 @@ cell_init() {
mts-io-sysfs store radio-power 1
}
+eth_init() {
+ mts-io-sysfs store eth-enabled 0
+ mts-io-sysfs store eth-enabled 1
+}
+
case $1 in
start)
echo "Loading mts-io module"
modprobe mts_io
+ eth_init
lora_init
cell_init &
;;