256b703f7940728908f408de6ed9f77faa7de0d7
[librecmc/librecmc.git] / obsolete-buildroot / sources / openwrt / patches / ppp / setevn_call_file
1 diff -ruN ppp.orig/pppd/options.c ppp/pppd/options.c
2 --- ppp.orig/pppd/options.c     2004-02-27 19:45:18.000000000 +0100
3 +++ ppp/pppd/options.c  2004-02-27 19:44:48.000000000 +0100
4 @@ -1448,6 +1448,7 @@
5      if ((fname = (char *) malloc(l)) == NULL)
6         novm("call file name");
7      slprintf(fname, l, "%s%s", _PATH_PEERFILES, arg);
8 +    script_setenv("CALL_FILE", arg, 0);
9  
10      ok = options_from_file(fname, 1, 1, 1);
11  
12 diff -ruN ppp.orig/pppd/pppd.8 ppp/pppd/pppd.8
13 --- ppp.orig/pppd/pppd.8        2004-02-27 19:45:18.000000000 +0100
14 +++ ppp/pppd/pppd.8     2004-02-27 19:45:13.000000000 +0100
15 @@ -1569,6 +1569,9 @@
16  .B LINKNAME
17  The logical name of the link, set with the \fIlinkname\fR option.
18  .TP
19 +.B CALL_FILE
20 +The value of the \fIcall\fR option.
21 +.TP
22  .B DNS1
23  If the peer supplies DNS server addresses, this variable is set to the
24  first DNS server address supplied.