From owner-freebsd-hackers Tue Mar 17 18:48:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA25593 for freebsd-hackers-outgoing; Tue, 17 Mar 1998 18:48:48 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dcarmich.pr.mcs.net (dcarmich.pr.mcs.net [204.95.63.202]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA25524 for ; Tue, 17 Mar 1998 18:48:43 -0800 (PST) (envelope-from dcarmich@dcarmich.pr.mcs.net) Received: (from dcarmich@localhost) by dcarmich.pr.mcs.net (8.8.7/8.8.7) id UAA00264; Tue, 17 Mar 1998 20:48:57 -0600 (CST) (envelope-from dcarmich) From: Douglas Carmichael Message-Id: <199803180248.UAA00264@dcarmich.pr.mcs.net> Subject: I have a patch for rc.network to allow specifying DHCP in rc.conf To: freebsd-hackers@FreeBSD.ORG, itojun@itojun.org Date: Tue, 17 Mar 1998 20:48:56 -0600 (CST) X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I took the DHCP if part out of /etc/pccard_ether. (Is the dhcpc program normally in /usr/local/sbin?) You may commit this patch if you want to, but tell me first. Please reply to dcarmich@mcs.com directly (I'm not on the mailing list). This patch is against a 2.2.5-RELEASE rc.network file. *** /etc/rc.network.old Tue Mar 17 20:36:22 1998 --- /etc/rc.network Tue Mar 17 20:36:49 1998 *************** *** 31,39 **** . /etc/start_if.${ifn} ${ifn} fi # Do the primary ifconfig if specified ! eval ifconfig_args=\$ifconfig_${ifn} if [ -n "${ifconfig_args}" ] ; then ifconfig ${ifn} ${ifconfig_args} fi # Check to see if aliases need to be added alias=0 --- 31,43 ---- . /etc/start_if.${ifn} ${ifn} fi # Do the primary ifconfig if specified ! eval ifconfig_args=\$ifconfig_${ifn} ! if [ "x$ifconfig_args" = "xDHCP" ] ; then ! /usr/local/sbin/dhcpc $interface ! else if [ -n "${ifconfig_args}" ] ; then ifconfig ${ifn} ${ifconfig_args} + fi fi # Check to see if aliases need to be added alias=0 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message