From 3f916c88e317083aac61c03f3e7dba95e65d83ac Mon Sep 17 00:00:00 2001 From: brooks Date: Tue, 15 Apr 2008 23:03:35 +0000 Subject: 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(+) (limited to 'etc/rc.d') 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 -- cgit v1.1