Date: Sat, 13 Mar 1999 13:33:37 +0900 (JST) From: sanpei@sanpei.org To: FreeBSD-gnats-submit@freebsd.org Subject: misc/10566: fix dhcpc problem on /etc/pccard_ether Message-ID: <199903130433.NAA74076@lavender.sanpei.org>
next in thread | raw e-mail | index | archive | help
>Number: 10566 >Category: misc >Synopsis: patch dhcpc problem on /etc/pccard_ether >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 12 20:40:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: MIHIRA Yoshiro >Release: FreeBSD 3.1-RELEASE i386 >Organization: Keio Univ. >Environment: 3.1-RELEASE + PCCARD + wide-dhcp client >Description: When reload PCCARD ethernet card, /etc/pccard_ether kill old dhcpc process and restart dhcpc. But current /etc/pccard_ether code can't kill dhcpc process. Because pccard_ether use /var/run/dhcpc.pid file for process ID. but, latest wide-dhcp creates /var/run/dhcpc.[interfacename].pid. This change was from Apr,4,1997. See ports/net/wide-dhcp/patches/patch-as rev.1.2. and now this patch is imported to original WIDE-dhcp source. So I hope to change /etc/pccard_ether as below. >How-To-Repeat: >Fix: apply to src/etc/pccard_ether or /etc/pccard_ether --- pccard_ether.org Sat Mar 13 13:06:26 1999 +++ pccard_ether Sat Mar 13 13:07:52 1999 @@ -23,9 +23,9 @@ fi /usr/local/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 + if [ -s /var/run/dhcpc.$*.pid ]; then + kill `cat /var/run/dhcpc.$*.pid` + rm /var/run/dhcpc.$*.pid fi /usr/local/sbin/dhcpc $* else >Release-Note: >Audit-Trail: >Unformatted: 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?199903130433.NAA74076>