mirror of https://github.com/CISOfy/lynis.git
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:
parent
e0e76c97df
commit
0b2cd02f0d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue