summaryrefslogtreecommitdiffstats
path: root/etc/network.subr
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1999-07-16 09:26:53 +0000
committerjkh <jkh@FreeBSD.org>1999-07-16 09:26:53 +0000
commit62a15a73f51b97c0ffc57c2da9aaa25cffb8cc07 (patch)
treecdafd92b3e7a8128c1badb6fdfdc15140b38c60e /etc/network.subr
parentec6dad014ee58e3cd813572d2eecefe91e996917 (diff)
downloadFreeBSD-src-62a15a73f51b97c0ffc57c2da9aaa25cffb8cc07.zip
FreeBSD-src-62a15a73f51b97c0ffc57c2da9aaa25cffb8cc07.tar.gz
Allow DHCP to be used in an ifconfig variable instead of the usual
address information, producing the obvious effect (dhcp configuration). Submitted by: "Sean O'Connell" <sean@stat.Duke.EDU>
Diffstat (limited to 'etc/network.subr')
-rw-r--r--etc/network.subr9
1 files changed, 7 insertions, 2 deletions
diff --git a/etc/network.subr b/etc/network.subr
index 63b8a32..d0eec1a 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.48 1999/07/07 12:49:45 peter Exp $
+# $Id: rc.network,v 1.49 1999/07/08 18:56:02 peter Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -63,7 +63,12 @@ network_pass1() {
# Do the primary ifconfig if specified
eval ifconfig_args=\$ifconfig_${ifn}
if [ -n "${ifconfig_args}" ] ; then
- ifconfig ${ifn} ${ifconfig_args}
+ # See if we are using DHCP
+ if [ X"${ifconfig_args}" = X"DHCP" ]; then
+ ${dhcp_program} ${dhcp_flags} ${ifn}
+ else
+ ifconfig ${ifn} ${ifconfig_args}
+ fi
showstat=true
fi
# Check to see if aliases need to be added
OpenPOWER on IntegriCloud