Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Mar 1999 18:40:01 -0800 (PST)
From:      MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/10566: patch dhcpc problem on /etc/pccard_ether
Message-ID:  <199903260240.SAA83919@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/10566; it has been noted by GNATS.

From: MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903260240.SAA83919>