From owner-freebsd-bugs Thu Aug 5 9:30:10 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 142BD14EE7 for ; Thu, 5 Aug 1999 09:30:08 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id JAA87261; Thu, 5 Aug 1999 09:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Thu, 5 Aug 1999 09:30:03 -0700 (PDT) Message-Id: <199908051630.JAA87261@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Jasper O'Malley" Subject: Re: conf/12984: No dhclient support in /etc/rc* Reply-To: "Jasper O'Malley" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR conf/12984; it has been noted by GNATS. From: "Jasper O'Malley" To: card@csi.uvsq.fr Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: conf/12984: No dhclient support in /etc/rc* Date: Thu, 5 Aug 1999 10:28:50 -0500 (CDT) On Thu, 5 Aug 1999, Remy Card wrote: > 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. Sure it is. /etc/rc.network looks for the file /etc/start_if.${ifn} for each interface ${ifn} listed in rc.conf, and runs it if present. If you want to use dhclient to lease an address on fxp0, for instance, make a file /etc/start_if.fxp0 with the following lines in it: #!/bin/sh /sbin/dhclient fxp0 The patch looks okay, too, though. There's something appealing about being able to simply stick ifconfig_fxp0="DHCP" in rc.conf, and not have to muck with a start_if script. I'd suggest calling the new rc.conf variable something like dhcpc_program, instead of just dhcp_program, to avoid confusion with a possible future DHCP server program variable. Cheers, Mick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message