]>
Commit | Line | Data |
---|---|---|
804452e5 | 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 | |
3 | @@ -54,6 +54,9 @@ | |
4 | #define BOOL unsigned char | |
5 | #define NVARS 286 /* a-z, a0-z9 == 26*11 */ | |
6 | ||
7 | +#ifndef SCRIPTDIR | |
8 | +#define SCRIPTDIR "/usr/local/share/comgt/" | |
9 | +#endif | |
10 | ||
11 | extern char *optarg; | |
12 | extern int optind, opterr; | |
13 | @@ -1642,7 +1645,7 @@ | |
14 | //scriptfile[0] = '\0'; | |
15 | } | |
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 | |
24 | @@ -115,7 +115,7 @@ | |
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. | |
27 | . | |
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 | |
30 | .PP | |
31 | .SS Built-in scripts | |
32 |