Date: Thu, 1 Apr 1999 03:40:02 -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: <199904011140.DAA61625@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, freebsd-gnats-submit@freebsd.org Cc: Subject: Re: misc/10566: patch dhcpc problem on /etc/pccard_ether Date: Thu, 01 Apr 1999 20:32:09 +0900 > I create new patch for pccard_ether and defaults/rc.conf, yes, >its' experimental. > >--- sys/etc/pccard_ether.org Fri Mar 26 10:47:26 1999 >+++ sys/etc/pccard_ether Fri Mar 26 10:58:50 1999 ~~~ Sorry I mistake previous patch, not ``sys/etc'', correct one is ``src/etc.'' I added directory name by hand. I fix it. MIHIRA Yoshiro --- src/etc/pccard_ether.org Fri Mar 26 10:47:26 1999 +++ src/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 ---------- --- src/etc/defaults/rc.conf.org Fri Mar 26 11:06:23 1999 +++ src/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?199904011140.DAA61625>