Date: Thu, 2 Sep 1999 23:30:03 -0700 (PDT) From: Sheldon Hearn <sheldonh@uunet.co.za> To: freebsd-bugs@FreeBSD.org Subject: Re: conf/13548: MFC use of DHCP as pseudo ifconfig option Message-ID: <199909030630.XAA20273@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/13548; it has been noted by GNATS.
From: Sheldon Hearn <sheldonh@uunet.co.za>
To: brooks@one-eyed-alien.net
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: conf/13548: MFC use of DHCP as pseudo ifconfig option
Date: Fri, 03 Sep 1999 08:18:55 +0200
On Thu, 02 Sep 1999 14:51:35 MST, brooks@one-eyed-alien.net wrote:
> Here's a diff if my src/etc generated with:
> cvs -q diff -u | uuencode ifconfig-dhcp.diff
Small diff like this deserves to be sent without encoding. :-)
Index: rc.network
===================================================================
RCS file: /home/ncvs/src/etc/rc.network,v
retrieving revision 1.39.2.10
diff -u -r1.39.2.10 rc.network
--- rc.network 1999/08/29 14:18:56 1.39.2.10
+++ rc.network 1999/09/01 16:45:09
@@ -63,7 +63,12 @@
# 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
Index: defaults/rc.conf
===================================================================
RCS file: /home/ncvs/src/etc/defaults/rc.conf,v
retrieving revision 1.1.2.12
diff -u -r1.1.2.12 rc.conf
--- rc.conf 1999/08/29 14:19:07 1.1.2.12
+++ rc.conf 1999/09/01 16:45:11
@@ -34,6 +34,8 @@
### Basic network options: ###
hostname="myname.my.domain" # Set this!
nisdomainname="NO" # Set to NIS domain if using NIS (or NO).
+dhcp_program="/sbin/dhclient" # Path to dhcp client program.
+dhcp_flags="" # Additional flags to pass to dhcp client.
firewall_enable="NO" # Set to YES to enable firewall functionality
firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall
firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall)
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909030630.XAA20273>
