Date: Tue, 17 Mar 1998 20:48:56 -0600 (CST) From: Douglas Carmichael <dcarmich@mcs.com> To: freebsd-hackers@FreeBSD.ORG, itojun@itojun.org Subject: I have a patch for rc.network to allow specifying DHCP in rc.conf Message-ID: <199803180248.UAA00264@dcarmich.pr.mcs.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803180248.UAA00264>