Signed-off-by: Michael Grigorev <sleuthho...@gmail.com>
Index: package/comgt/patches/004-CHANGELOG.diff =================================================================== --- package/comgt/patches/004-CHANGELOG.diff (revision 0) +++ package/comgt/patches/004-CHANGELOG.diff (revision 0) @@ -0,0 +1,18 @@ +--- a/CHANGELOG Fri Oct 20 20:49:46 2006 ++++ b/CHANGELOG Tue Jul 13 09:38:59 2010 +@@ -1,7 +1,14 @@ +-Change log $Id: CHANGELOG,v 1.3 2006/10/20 14:30:19 pharscape Exp $ ++Change log $Id: CHANGELOG,v 1.4 2010/02/26 00:09:08 gknauf Exp $ + ========== + Changes to comgt + ================ ++Tues Jul. 13th 2010 Michael Grigorev ++ - fixed use CGREG for registration checking ++ ++Fri Feb. 26th 2010 Guenter Knauf ++ - fixed typo in builtin script APN (bug ID 1610044). ++ - silenced compiler warning (patch ID 1667936). ++ + Fri Oct. 20th 2006 Paul Hardwick + - Scripts distributed with package are now located in scripts sub-directory + - Install now copies scripts to /etc/comgt see scripts/README for list of scripts Index: package/comgt/patches/002-comgt.c.diff =================================================================== --- package/comgt/patches/002-comgt.c.diff (revision 0) +++ package/comgt/patches/002-comgt.c.diff (revision 0) @@ -0,0 +1,26 @@ +--- a/comgt.c Fri Oct 20 20:49:46 2006 ++++ b/comgt.c Tue Jul 13 09:31:23 2010 +@@ -22,7 +22,7 @@ + */ + + /*************************************************************************** +-* $Id: comgt.c,v 1.4 2006/10/20 14:30:19 pharscape Exp $ ++* $Id: comgt.c,v 1.5 2010/02/25 23:47:30 gknauf Exp $ + ****************************************************************************/ + + +@@ -1539,7 +1539,7 @@ + unsigned char terminator='\n'; + char *devenv,line[STRINGL]; + +- //Load up the COMGT device env variable if it exists ++ /* Load up the COMGT device env variable if it exists */ + devenv = getenv("COMGTDEVICE"); + if (devenv != NULL && strlen(devenv)){ + strcpy(device,devenv); +@@ -1737,4 +1737,5 @@ + sprintf(msg,"Exit with code %d.\n",a); + vmsg(msg); + ext(a); ++ return 0; /* NOTREACHED */ + } Index: package/comgt/patches/003-comgt.h.diff =================================================================== --- package/comgt/patches/003-comgt.h.diff (revision 0) +++ package/comgt/patches/003-comgt.h.diff (revision 0) @@ -0,0 +1,48 @@ +--- a/comgt.h Fri Oct 20 20:49:46 2006 ++++ b/comgt.h Tue Jul 13 09:36:18 2010 +@@ -20,10 +20,10 @@ + ***************************************************************************/ + + /*************************************************************************** +-* $Id: comgt.h,v 1.4 2006/10/20 14:30:19 pharscape Exp $ ++* $Id: comgt.h,v 1.5 2010/02/25 23:25:57 gknauf Exp $ + ****************************************************************************/ +-#define COMGT_VERSION "0.32" +-#define YEARS "2005,2006" ++#define COMGT_VERSION "0.33" ++#define YEARS "2005,2006,2010" + + char _default_code[] = + "opengt\n\ +@@ -83,8 +83,8 @@ + print \"Waiting for Registration..(120 sec max)\"\n\ + let c = 0\n\ + :waitreg\n\ +- send \"AT+CREG?^m\"\n\ +- waitfor 2 \"+CREG: 0,1\",\"+CREG: 0,5\"\n\ ++ send \"AT+CGREG?^m\"\n\ ++ waitfor 2 \"+CGREG: 0,1\",\"+CGREG: 0,5\"\n\ + if % = -1 goto regagain\n\ + if % = 0 goto homereg\n\ + if % = 1 goto roamreg\n\ +@@ -470,13 +470,17 @@ + if a=0 goto apnerror\n\ + if a>32 goto apnerror\n\ + :enterapn\n\ +- send \"AT+CGDCONT=1,\\\"IP\\\",\\\"\n\ +- send $c\n\ ++ send \"AT+CGDCONT=1,\\\"IP\\\",\\\"\"\n\ ++ send $x\n\ + send \"\\\"^m\"\n\ + waitfor 20 \"OK\",\"ERR\"\n\ + if % = -1 goto timeerror\n\ + if % = 0 goto OK\n\ +- if % = 1 goto apnerror\n\ ++ if % = 1 goto apnseterror\n\ ++ :apnseterror\n\ ++ print \"ERROR entering APN\n\"\n\ ++ print \"The device did not accept the APN set command\n\"\n\ ++ exit 1\n\ + :apnerror\n\ + print \"ERROR entering APN\n\"\n\ + print \"The COMGTAPN env variable is not set\n\"\n\
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel