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
This commit is contained in:
melak 2018-01-21 12:29:49 +01:00 committed by Michael Boelen
parent e0e76c97df
commit 0b2cd02f0d
1 changed files with 1 additions and 1 deletions

View File

@ -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