diff options
author | brooks <brooks@FreeBSD.org> | 2008-04-15 23:03:35 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2008-04-15 23:03:35 +0000 |
commit | 3f916c88e317083aac61c03f3e7dba95e65d83ac (patch) | |
tree | 18ec8c680a10ccc67c9cb0b6d92da1580f373705 /etc/rc.d | |
parent | c390aa9572bcd15d4db164f0326ecd949bfad016 (diff) | |
download | FreeBSD-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/rc.d')
-rwxr-xr-x | etc/rc.d/dhclient | 4 |
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 |