From owner-freebsd-bugs Thu Mar 25 18:40:38 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 D06CC1561C for ; Thu, 25 Mar 1999 18:40:19 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id SAA83919; Thu, 25 Mar 1999 18:40:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Thu, 25 Mar 1999 18:40:01 -0800 (PST) Message-Id: <199903260240.SAA83919@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: MIHIRA Sanpei Yoshiro Subject: Re: misc/10566: patch dhcpc problem on /etc/pccard_ether Reply-To: MIHIRA Sanpei Yoshiro Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR misc/10566; it has been noted by GNATS. From: MIHIRA Sanpei Yoshiro To: sheldonh@iafrica.com Cc: freebsd-gnats-submit@freebsd.org Subject: Re: misc/10566: patch dhcpc problem on /etc/pccard_ether Date: Fri, 26 Mar 1999 11:18:19 +0900 OK. I create new patch for pccard_ether and defaults/rc.conf, yes, its' experimental. MIHIRA Yoshiro. --- sys/etc/pccard_ether.org Fri Mar 26 10:47:26 1999 +++ sys/etc/pccard_ether Fri Mar 26 10:58:50 1999 @@ -16,20 +16,14 @@ if [ "x$pccard_ifconfig" != "xNO" ] ; then if [ "x$pccard_ifconfig" = "xDHCP" ] ; then - if [ -f /sbin/dhclient ] ; then - if [ -s /var/run/dhclient.pid ] ; then - kill `cat /var/run/dhclient.pid` - rm /var/run/dhclient.pid - fi - /sbin/dhclient - elif [ -f /usr/local/sbin/dhcpc ] ; then - if [ -s /var/run/dhcpc.pid ] ; then - kill `cat /var/run/dhcpc.pid` - rm /var/run/dhcpc.pid - fi - /usr/local/sbin/dhcpc $* + if [ -s $dhcp_pid_file ] ; then + kill `cat $dhcp_pid_file` + rm $dhcp_pid_file + fi + if [ -f $dhcp_client ] ; then + $dhcp_client $dhcp_client_flags else - echo "DHCP client software not available (isc-dhcp2)" + echo "DHCP client software not available" fi else interface=$1 ---------- --- sys/etc/defaults/rc.conf.org Fri Mar 26 11:06:23 1999 +++ sys/etc/defaults/rc.conf Fri Mar 26 11:12:56 1999 @@ -42,6 +42,14 @@ network_interfaces="lo0" # List of network interfaces (lo0 is loopback). ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. #ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry. +dhcp_client="/sbin/dhclient" # Name of dhcp client daemon to use if enabled. +dhcp_client_flags="" # Flags to dhcp client (if enabled). +dhcp_pid_file="/var/run/dhclient.pid" # pid filename of dhcp client +# +# If you use wide-dhcp (ports/net/wide-dhcp), you might also want to set. +#dhcp_client="/usr/local/sbin/dhcpc" +#dhcp_client_flags="$*" +#dhcp_pid_file="/var/run/dhcpc.$*.pid" # # If you have any sppp(4) interfaces above, you might also want to set # the following parameters. Refer to spppcontrol(8) for their meaning. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message