From 688e303c19b4f5710ea896c08c63aaa6085bd035 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Tue, 15 Apr 2008 23:03:35 +0000 Subject: [PATCH] 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 --- etc/rc.d/dhclient | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etc/rc.d/dhclient b/etc/rc.d/dhclient index 890aeaface8..c7e4b4df453 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