summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2008-04-15 23:03:35 +0000
committerbrooks <brooks@FreeBSD.org>2008-04-15 23:03:35 +0000
commit3f916c88e317083aac61c03f3e7dba95e65d83ac (patch)
tree18ec8c680a10ccc67c9cb0b6d92da1580f373705 /etc
parentc390aa9572bcd15d4db164f0326ecd949bfad016 (diff)
downloadFreeBSD-src-3f916c88e317083aac61c03f3e7dba95e65d83ac.zip
FreeBSD-src-3f916c88e317083aac61c03f3e7dba95e65d83ac.tar.gz
Add very limited support for the isc-dhclient. It will almostly certaintly
only work if there's just one interface doing dhcp. This version implements the same logic as the version in the PR, but uses pgrep to be less verbose. PR: conf/95905 MFC after: 1 week
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/dhclient4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.d/dhclient b/etc/rc.d/dhclient
index 890aeaf..c7e4b4d 100755
--- a/etc/rc.d/dhclient
+++ b/etc/rc.d/dhclient
@@ -26,6 +26,10 @@ dhclient_start()
if [ -n "$pids" ]; then
exit 0
fi
+ elif [ -e /var/run/dhclient.pid ]; then
+ if [ -n "`pgrep -F /var/run/dhclient.pid`" ]; then
+ exit 0
+ fi
fi
fi
OpenPOWER on IntegriCloud