From 0b2cd02f0d4b7fc358f17c8bf27826ea8906cce7 Mon Sep 17 00:00:00 2001
From: melak <ice@extreme.hu>
Date: Sun, 21 Jan 2018 12:29:49 +0100
Subject: [PATCH] Fix/amend DHCP client detection (#513)

- dhcpd is a server; the client is dhcpcd

- While here, add udhcpc to the list of recognised DHCP clients
---
 include/tests_networking | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/tests_networking b/include/tests_networking
index 7ec661e3..ecb773f2 100644
--- a/include/tests_networking
+++ b/include/tests_networking
@@ -574,7 +574,7 @@
     # Description : Checking for DHCP client
     Register --test-no NETW-3030 --weight L --network NO --category security --description "Checking DHCP client status"
     if [ ${SKIPTEST} -eq 0 ]; then
-        IsRunning dhclient || IsRunning dhcpd
+        IsRunning dhclient || IsRunning dhcpcd || IsRunning udhcpc
         if [ ${RUNNING} -eq 1 ]; then
             Display --indent 2 --text "- Checking status DHCP client" --result "${STATUS_RUNNING}" --color WHITE
             DHCP_CLIENT_RUNNING=1