From fd3d1ae86ad88879a637d2179578ac7202918313 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Sat, 18 Nov 2017 22:08:11 -0500 Subject: [PATCH] DHCPCD_PATH --- scripts/local_facts.fact | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/local_facts.fact b/scripts/local_facts.fact index 67c274826..1735a2b60 100755 --- a/scripts/local_facts.fact +++ b/scripts/local_facts.fact @@ -5,7 +5,7 @@ VERSION_ID=`grep VERSION_ID /etc/*elease | cut -d= -f2` VERSION_ID=${VERSION_ID//\"/} VERSION_ID=${VERSION_ID%%.*} OS_VER=$OS-$VERSION_ID -DHCPCD=`which dhcpcd` +DHCPCD_PATH=`which dhcpcd` case $OS_VER in "fedora-18" | \ @@ -53,6 +53,11 @@ else STAGE=0 fi ANSIBLE_VERSION=$(ansible --version|head -n 1|cut -f 2 -d " ") + +if [ ! x$DHCPCD_PATH = x ] +then + DHCPCD=`systemctl is-enabled dhcpcd` +fi cat <