projects
/
openwrt
/
staging
/
lynxis
/
omap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
comgt-ncm: Fix NCM protocol
[openwrt/staging/lynxis/omap.git]
/
package
/
network
/
utils
/
comgt
/
files
/
runcommand.gcom
diff --git
a/package/network/utils/comgt/files/runcommand.gcom
b/package/network/utils/comgt/files/runcommand.gcom
index ab24339dc95a7a13e03a9f323938c0375d259ab7..e99b6f922a418241b6723d257355757157e2b775 100644
(file)
--- a/
package/network/utils/comgt/files/runcommand.gcom
+++ b/
package/network/utils/comgt/files/runcommand.gcom
@@
-6,14
+6,15
@@
opengt
flash 0.1
:start
flash 0.1
:start
-
send "sending ->
"
+
print "sending -> ",$env("COMMAND"),"\n
"
send $env("COMMAND")
send "^m"
send $env("COMMAND")
send "^m"
- waitfor 15 "OK","ERR","ERROR"
+ waitfor 15 "OK","ERR","ERROR"
,"COMMAND NOT SUPPORT"
if % = 0 goto continue
if % = 1 goto error
if % = 2 goto error
if % = 0 goto continue
if % = 1 goto error
if % = 2 goto error
+ if % = 3 goto notsupported
print "Timeout running AT-command\n"
exit 1
print "Timeout running AT-command\n"
exit 1
@@
-22,5
+23,9
@@
opengt
print "Error running AT-command\n"
exit 1
print "Error running AT-command\n"
exit 1
+:notsupported
+ print "AT-command not supported\n"
+ exit 1
+
:continue
exit 0
:continue
exit 0