summaryrefslogtreecommitdiffstats
path: root/package/query3g/files/query3g.sh
diff options
context:
space:
mode:
authorRoman Yeryomin <roman@advem.lv>2012-10-10 19:07:43 +0300
committerRoman Yeryomin <roman@advem.lv>2012-12-03 00:13:25 +0200
commitc1f8d33d3b3563ef77bcaaae3d16921540079ef2 (patch)
tree4d7a8fadaa6b022551f022da1e6ff1b0f02a1d82 /package/query3g/files/query3g.sh
parent44edd760c668907a304ffc022e4c50fa8eb5d81a (diff)
Fix query3g so it could detect more 3g dongles which don't have AT+CPIN command
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'package/query3g/files/query3g.sh')
-rw-r--r--package/query3g/files/query3g.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/query3g/files/query3g.sh b/package/query3g/files/query3g.sh
index b591d61a3..33cfe2379 100644
--- a/package/query3g/files/query3g.sh
+++ b/package/query3g/files/query3g.sh
@@ -22,9 +22,9 @@ for port in 0 1 2 3 4 5 6 7 8 9; do
local vid="$(cat "$tty/../../idVendor")"
local pid="$(cat "$tty/../../idProduct")"
- if [ "$last_reset" != "$vid:$pid" ]; then
+ if [ "$last_reset" != "$vid:$pid" ] && [ "$vid:$pid" != "0685:7000" ]; then
last_reset="$vid:$pid"
- $reset "$vid:$pid" >/dev/null
+# $reset "$vid:$pid" >/dev/null
local try=0
while [ $((try++)) -lt 5 ] && [ ! -e "$dev" ]; do sleep 1; done