Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jun 1998 17:25:02 -0700
From:      Bill Trost <trost@cloud.rain.com>
To:        mobile@FreeBSD.ORG
Subject:   pccard_ether & wide-DHCP
Message-ID:  <8918.898129502@cloud.rain.com>

next in thread | raw e-mail | index | archive | help
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



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