summaryrefslogtreecommitdiffstats
path: root/etc/pccard_ether
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-08-14 06:31:58 +0000
committerphk <phk@FreeBSD.org>1998-08-14 06:31:58 +0000
commita2ddc2937ccef16b7942968d4c6db7d9721a1249 (patch)
treed748477005779f37844895006e843162b885bc9d /etc/pccard_ether
parentc737fc04c08a9303e2ca3ef3d0f504a08734e04e (diff)
downloadFreeBSD-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/pccard_ether')
-rwxr-xr-xetc/pccard_ether6
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
OpenPOWER on IntegriCloud