From owner-freebsd-bugs Thu Sep 2 23:32:31 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id D9A1214D62 for ; Thu, 2 Sep 1999 23:32:28 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id XAA20273; Thu, 2 Sep 1999 23:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Thu, 2 Sep 1999 23:30:03 -0700 (PDT) Message-Id: <199909030630.XAA20273@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Sheldon Hearn Subject: Re: conf/13548: MFC use of DHCP as pseudo ifconfig option Reply-To: Sheldon Hearn Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR conf/13548; it has been noted by GNATS. From: Sheldon Hearn 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