diff options
author | phk <phk@FreeBSD.org> | 1998-08-14 06:31:58 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1998-08-14 06:31:58 +0000 |
commit | a2ddc2937ccef16b7942968d4c6db7d9721a1249 (patch) | |
tree | d748477005779f37844895006e843162b885bc9d /etc | |
parent | c737fc04c08a9303e2ca3ef3d0f504a08734e04e (diff) | |
download | FreeBSD-src-a2ddc2937ccef16b7942968d4c6db7d9721a1249.zip FreeBSD-src-a2ddc2937ccef16b7942968d4c6db7d9721a1249.tar.gz |
Wrapper script for PC Card Ethernet Adapters only supports ISC DHCP;
I prefer wide-dhcp, and since both are packages, it should get
equal billing.
PR: 7568
Reviewed by: phk
Submitted by: Drew Derbyshire <software@kew.com>
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/pccard_ether | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/pccard_ether b/etc/pccard_ether index f87d44a..79adf69 100755 --- a/etc/pccard_ether +++ b/etc/pccard_ether @@ -18,6 +18,12 @@ if [ "x$pccard_ifconfig" != "xNO" ] ; then rm /var/run/dhclient.pid 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 + fi + /usr/local/sbin/dhcpc $* else echo "DHCP client software not available (isc-dhcp2)" fi |