summaryrefslogtreecommitdiffstats
path: root/contrib/isc-dhcp
diff options
context:
space:
mode:
authorgordon <gordon@FreeBSD.org>2003-06-29 18:46:18 +0000
committergordon <gordon@FreeBSD.org>2003-06-29 18:46:18 +0000
commit6b7019d5ed2baad877e25d3e76a4ebcfd3160c88 (patch)
tree678d9e132073a3aaa1eac91dbcb82922f5f227c2 /contrib/isc-dhcp
parent9beb6458f555f771d27552db74510cbe89a6ea38 (diff)
downloadFreeBSD-src-6b7019d5ed2baad877e25d3e76a4ebcfd3160c88.zip
FreeBSD-src-6b7019d5ed2baad877e25d3e76a4ebcfd3160c88.tar.gz
Tweak a couple of utilities so they compile cleanly for /rescue. Mostly
path fixes. Submitted by: Tim Kientzle <kientzle@acm.org>
Diffstat (limited to 'contrib/isc-dhcp')
-rw-r--r--contrib/isc-dhcp/includes/cf/freebsd.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/isc-dhcp/includes/cf/freebsd.h b/contrib/isc-dhcp/includes/cf/freebsd.h
index eefbce3..db15c30 100644
--- a/contrib/isc-dhcp/includes/cf/freebsd.h
+++ b/contrib/isc-dhcp/includes/cf/freebsd.h
@@ -103,6 +103,10 @@ extern int h_errno;
#define SOCKLEN_T int
#endif
+#ifdef RESCUE
+#define _PATH_DHCLIENT_SCRIPT "/rescue/dhclient-script"
+#endif
+
#if defined (USE_DEFAULT_NETWORK)
# define USE_BPF
#endif
@@ -113,6 +117,9 @@ extern int h_errno;
#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",
@@ -123,10 +130,12 @@ const char *cmds[] = {
"/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",
".",
@@ -136,13 +145,16 @@ const char *dirs[] = {
"/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 */
OpenPOWER on IntegriCloud