2006-05-16 06:20:52 +00:00
|
|
|
--- includes/cf/freebsd.h.orig Wed Sep 1 19:06:36 2004
|
|
|
|
+++ includes/cf/freebsd.h Mon May 15 09:13:18 2006
|
|
|
|
@@ -33,7 +33,7 @@
|
2004-03-22 23:33:09 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <syslog.h>
|
|
|
|
-#include <sys/types.h>
|
|
|
|
+#include <sys/param.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <paths.h>
|
|
|
|
#include <errno.h>
|
2006-05-16 06:20:52 +00:00
|
|
|
@@ -97,6 +97,10 @@
|
2004-03-16 20:31:15 +00:00
|
|
|
#define SOCKLEN_T int
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#ifdef RESCUE
|
|
|
|
+#define _PATH_DHCLIENT_SCRIPT "/rescue/dhclient-script"
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#if defined (USE_DEFAULT_NETWORK)
|
|
|
|
# define USE_BPF
|
|
|
|
#endif
|
2006-05-16 06:20:52 +00:00
|
|
|
@@ -107,6 +111,9 @@
|
2004-03-16 20:31:15 +00:00
|
|
|
#endif /* HAVE_DEV_RANDOM */
|
|
|
|
|
|
|
|
const char *cmds[] = {
|
|
|
|
+#ifndef RESCUE
|
|
|
|
+ /* rescue environment can't rely on these ... */
|
|
|
|
+ /* Actually, /sbin/dhclient shouldn't use these, either. */
|
|
|
|
"/bin/ps -axlw 2>&1",
|
|
|
|
"/usr/sbin/arp -an 2>&1",
|
|
|
|
"/usr/bin/netstat -an 2>&1",
|
2006-05-16 06:20:52 +00:00
|
|
|
@@ -117,10 +124,12 @@
|
2004-03-16 20:31:15 +00:00
|
|
|
"/usr/sbin/iostat 2>&1",
|
|
|
|
"/usr/bin/vmstat 2>&1",
|
|
|
|
"/usr/bin/w 2>&1",
|
|
|
|
+#endif
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *dirs[] = {
|
|
|
|
+#ifndef RESCUE
|
|
|
|
"/tmp",
|
|
|
|
"/usr/tmp",
|
|
|
|
".",
|
2006-05-16 06:20:52 +00:00
|
|
|
@@ -130,13 +139,16 @@
|
2004-03-16 20:31:15 +00:00
|
|
|
"/var/mail",
|
|
|
|
"/home",
|
|
|
|
"/usr/home",
|
|
|
|
+#endif
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *files[] = {
|
|
|
|
+#ifndef RESCUE
|
|
|
|
"/var/log/messages",
|
|
|
|
"/var/log/wtmp",
|
|
|
|
"/var/log/lastlog",
|
|
|
|
+#endif
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
#endif /* NEED_PRAND_CONF */
|