1 --- o.comgt.0.32/comgt.c 2006-10-20 16:49:46.000000000 +0200
2 +++ n.comgt.0.32/comgt.c 2008-08-30 22:20:16.000000000 +0200
4 #define BOOL unsigned char
5 #define NVARS 286 /* a-z, a0-z9 == 26*11 */
8 +#define SCRIPTDIR "/usr/local/share/comgt/"
12 extern int optind, opterr;
14 //scriptfile[0] = '\0';
16 if((fp=fopen(scriptfile,"r"))==NULL) {
17 - strcpy(scriptfilepath,"/etc/comgt/");
18 + strcpy(scriptfilepath,SCRIPTDIR);
19 strcat(scriptfilepath,scriptfile);
20 if((fp=fopen(scriptfilepath,"r"))==NULL) {
21 sprintf(msg,"Could not open scriptfile \"%s\".\n",scriptfile);
22 --- o.comgt.0.32/comgt.1 2006-10-20 16:49:46.000000000 +0200
23 +++ n.comgt.0.32/comgt.1 2008-08-30 23:21:13.000000000 +0200
25 and will work for serially connected modems, built-in modems, PCMCIA modems
26 as well as the GlobeTrotter GPRS and the Vodafone 3G/GPRS datacards.
28 -There is a search priority order for scripts - 1)internal, 2)working directory, 3)/etc/comgt
29 +There is a search priority order for scripts - 1)internal, 2)working directory, 3)/usr/share/comgt