summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech/mts-io/mts-io.init
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/multitech/mts-io/mts-io.init')
-rw-r--r--recipes-bsp/multitech/mts-io/mts-io.init10
1 files changed, 6 insertions, 4 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init
index fd87c35..520a6d4 100644
--- a/recipes-bsp/multitech/mts-io/mts-io.init
+++ b/recipes-bsp/multitech/mts-io/mts-io.init
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/oin/bash
### BEGIN INIT INFO
# Provides: mts-io
# Default-Start: S
@@ -182,9 +182,6 @@ case $1 in
fi
/usr/bin/logger -t "mts-io" -p daemon.info -s "Resetting system modules"
read_card_info
- if ! reset_path $USBRST ; then
- ((fail++))
- fi
/bin/busybox usleep $USLPTIME
reset_array
[ -w /sys/devices/platform/mts-io/radio-reset ] && mts-io-sysfs store radio-reset 0
@@ -194,6 +191,11 @@ case $1 in
fi
waitpins
+ # Fix Telit error -62 and Redpine wrong USB speed detection on reset.
+ sleep 1
+ if ! reset_path $USBRST ; then
+ ((fail++))
+ fi
if ((fail == 0)) ; then
echo "OK"