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>2013-05-26 00:46:39 +0300
commit412c781600fa41c0133de2e0fb4af9e9ef3f08b5 (patch)
tree182bdcd0f728df1789551f5826af282ab66079b6 /package/query3g/files/query3g.sh
parent5a0e79b3b34d22b9b60941ff20d205bb55a31ab7 (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