summaryrefslogtreecommitdiffstats
path: root/etc/pccard_ether
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1997-12-16 02:25:36 +0000
committerpst <pst@FreeBSD.org>1997-12-16 02:25:36 +0000
commitf17b8b0cc67c649b9370ed6c56d4ce34d5ab75e1 (patch)
treea8f810185b0614826d0c2fc308033e1d8817ee04 /etc/pccard_ether
parentccd74359c5076e02fae86cec424872b8cc92d594 (diff)
downloadFreeBSD-src-f17b8b0cc67c649b9370ed6c56d4ce34d5ab75e1.zip
FreeBSD-src-f17b8b0cc67c649b9370ed6c56d4ce34d5ab75e1.tar.gz
Support ISC-DHCP if the package is available.
Diffstat (limited to 'etc/pccard_ether')
-rwxr-xr-xetc/pccard_ether8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/pccard_ether b/etc/pccard_ether
index 4084ea7..15faad7 100755
--- a/etc/pccard_ether
+++ b/etc/pccard_ether
@@ -12,7 +12,13 @@ fi
if [ "x$pccard_ifconfig" != "xNO" ] ; then
if [ "x$pccard_ifconfig" = "xDHCP" ] ; then
- # DHCP currently not implemented
+ if [ -f /usr/local/sbin/dhclient ] ; then
+ if [ -s /var/run/dhclient.pid ] ; then
+ kill `cat /var/run/dhclient.pid`
+ rm /var/run/dhclient.pid
+ fi
+ /usr/local/sbin/dhclient
+ fi
else
interface=$1
shift
OpenPOWER on IntegriCloud