]>
Commit | Line | Data |
---|---|---|
5ac51b5e PG |
1 | --- ./dhcpcd.c.org4 Wed Jan 1 02:26:32 2003 |
2 | +++ ./dhcpcd.c Mon Jan 6 12:55:05 2003 | |
3 | @@ -88,7 +88,7 @@ | |
4 | { | |
5 | int o; | |
6 | char pidfile[64]; | |
7 | - snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,ConfigDir,IfNameExt); | |
8 | + snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,IfNameExt); | |
9 | o=open(pidfile,O_RDONLY); | |
10 | if ( o == -1 ) return; | |
11 | close(o); | |
12 | --- ./pathnames.h.org4 Sun Sep 29 17:55:31 2002 | |
13 | +++ ./pathnames.h Mon Jan 6 12:50:24 2003 | |
14 | @@ -26,7 +26,7 @@ | |
0b9459f4 | 15 | #include <paths.h> |
16 | #include "dhcpcd.h" | |
17 | ||
18 | -#define PID_FILE_PATH "%s/"PROGRAM_NAME"-%s.pid" | |
c8a9053a | 19 | +#define PID_FILE_PATH "/var/run/"PROGRAM_NAME"-%s.pid" |
0b9459f4 | 20 | #define DHCP_CACHE_FILE "%s/"PROGRAM_NAME"-%s.cache" |
21 | #define DHCP_HOSTINFO "%s/"PROGRAM_NAME"-%s.info" | |
22 | #define EXEC_ON_CHANGE "%s/"PROGRAM_NAME".exe" | |
5ac51b5e PG |
23 | @@ -37,10 +37,10 @@ |
24 | #define NIS_CONF "/etc/config/yp.conf" | |
25 | #define NTP_CONF "/etc/config/ntp.conf" | |
26 | #else | |
27 | -#define CONFIG_DIR "/etc/dhcpc" | |
28 | +#define CONFIG_DIR "/var/lib/dhcpc" | |
29 | #define RESOLV_CONF "/etc/resolv.conf" | |
30 | #define NIS_CONF "/etc/yp.conf" | |
31 | -#define NTP_CONF "/etc/ntp.conf" | |
32 | +#define NTP_CONF "/etc/ntp/ntp.conf" | |
33 | #endif | |
34 | ||
35 | #endif | |
36 | --- ./dhcpcd.8.org4 Wed Jan 1 02:31:31 2003 | |
37 | +++ ./dhcpcd.8 Mon Jan 6 12:52:50 2003 | |
38 | @@ -137,7 +137,7 @@ | |
0b9459f4 | 39 | will use |
40 | .I <ConfigDir> | |
41 | directory instead of default | |
42 | -.I /etc/dhcpc | |
43 | +.I /var/lib/dhcpc | |
44 | to store configuration information. | |
45 | .TP | |
5ac51b5e PG |
46 | .BI \-S |
47 | @@ -281,7 +281,7 @@ | |
0b9459f4 | 48 | .SH FILES |
49 | .PD 0 | |
50 | .TP | |
51 | -.BI /etc/dhcpc | |
52 | +.BI /var/lib/dhcpc | |
53 | Default | |
54 | .I <ConfigDir> | |
55 | directory used for storing files | |
5ac51b5e | 56 | @@ -379,7 +379,7 @@ |
c7a47a71 | 57 | .B dhcpcd |
58 | exits for any reason. | |
59 | .TP | |
60 | -.BI <ConfigDir>/dhcpcd-<interface>.pid | |
5ac51b5e | 61 | +.BI /var/run/dhcpcd-<interface>.pid |
c7a47a71 | 62 | file containing the process id of |
63 | .B dhcpcd. | |
64 | The word | |
5ac51b5e PG |
65 | --- ./signals.c.org4 Sun Jan 20 23:51:46 2002 |
66 | +++ ./signals.c Mon Jan 6 12:56:58 2003 | |
c7a47a71 | 67 | @@ -44,7 +44,7 @@ |
68 | FILE *fp; | |
69 | pid_t pid; | |
70 | char pidfile[64]; | |
71 | - snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,ConfigDir,IfNameExt); | |
72 | + snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,IfNameExt); | |
73 | fp=fopen(pidfile,"r"); | |
74 | if ( fp == NULL ) goto ntrn; | |
75 | fscanf(fp,"%u",&pid); | |
76 | @@ -63,7 +63,7 @@ | |
77 | { | |
78 | FILE *fp; | |
79 | char pidfile[64]; | |
80 | - snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,ConfigDir,IfNameExt); | |
81 | + snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,IfNameExt); | |
82 | fp=fopen(pidfile,"w"); | |
83 | if ( fp == NULL ) | |
84 | { | |
85 | @@ -77,7 +77,7 @@ | |
86 | void deletePidFile() | |
87 | { | |
88 | char pidfile[64]; | |
89 | - snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,ConfigDir,IfNameExt); | |
90 | + snprintf(pidfile,sizeof(pidfile),PID_FILE_PATH,IfNameExt); | |
91 | unlink(pidfile); | |
92 | } | |
93 | /*****************************************************************************/ |