Date: Thu, 5 Aug 1999 14:43:29 +0200 (CEST) From: card@ens.uvsq.fr (Remy Card) To: FreeBSD-gnats-submit@freebsd.org Subject: conf/12984: No dhclient support in /etc/rc* Message-ID: <199908051243.OAA00777@alsace.ens.uvsq.fr>
index | next in thread | raw e-mail
>Number: 12984
>Category: conf
>Synopsis: /etc/rc* does not contain any support for dhclient
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Aug 5 05:50:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator: Remy Card
>Release: FreeBSD 3.2-RELEASE i386
>Organization:
CSI - UVSQ
>Environment:
3.2-RELEASE and 3.2-STABLE
>Description:
3.2-RELEASE contains dhclient but the startup scripts (/etc/rc*) do
not include any support for it. Thus, it is not possible to use DHCP to
set the IP address without modifying these scripts.
>How-To-Repeat:
>Fix:
Apply the following patch that adds dhclient support in /etc/rc.network
and /etc/defaults/rc.conf. This patch includes the changes made in the
current version of /etc/rc*.
--- usr/src/etc/defaults/rc.conf Tue May 11 14:21:22 1999
+++ etc/defaults/rc.conf Thu Aug 5 14:20:28 1999
@@ -31,6 +31,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)
--- usr/src/etc/rc.network Mon Apr 12 17:29:11 1999
+++ etc/rc.network Wed Aug 4 18:53:35 1999
@@ -58,7 +58,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
fi
# Check to see if aliases need to be added
alias=0
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908051243.OAA00777>
