From owner-freebsd-mobile Wed Jun 17 17:25:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA11892 for freebsd-mobile-outgoing; Wed, 17 Jun 1998 17:25:48 -0700 (PDT) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from jli.com (jli.com [199.2.111.1]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id RAA11887 for ; Wed, 17 Jun 1998 17:25:46 -0700 (PDT) (envelope-from trost@cloud.rain.com) Received: (qmail 26149 invoked by uid 4); 18 Jun 1998 00:25:15 -0000 Received: (qmail 8921 invoked from network); 18 Jun 1998 00:25:03 -0000 Received: from localhost.cloud.rain.com (HELO cloud.rain.com) (127.0.0.1) by localhost.cloud.rain.com with SMTP; 18 Jun 1998 00:25:03 -0000 To: mobile@FreeBSD.ORG Subject: pccard_ether & wide-DHCP MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8914.898129501.1@cloud.rain.com> Date: Wed, 17 Jun 1998 17:25:02 -0700 Message-ID: <8918.898129502@cloud.rain.com> From: Bill Trost Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following are my changes to /etc/pccard_ether to make it work with WIDE-DHCP. Someone might commit them to -current. --- /usr/src/etc/pccard_ether Tue Jan 13 14:49:41 1998 +++ - Wed Jun 17 17:22:03 1998 @@ -18,8 +18,22 @@ rm /var/run/dhclient.pid fi /usr/local/sbin/dhclient + elif [ -f /usr/local/sbin/dhcpc ]; then + rm -f /var/db/dhcp_cache + if [ -s /var/run/dhcpc.$1.pid ]; then + kill -USR2 `cat /var/run/dhcpc.$1.pid` + sleep 1 # give it a chance to clean up + fi + while ifconfig $1 | grep -s inet > /dev/null; do + ifconfig $1 delete + done + /usr/local/sbin/dhcpc $1 + # wait for address to appear before adding routes + until ifconfig $1 | grep -s inet > /dev/null; do + sleep 1 + done else - echo "DHCP client software not available (isc-dhcp2)" + echo "DHCP client software not available (isc-dhcp2 nor wide-dhcp)" fi else interface=$1 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message