mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 20:22:08 +00:00
DHCPCD_PATH
This commit is contained in:
parent
ae5a8e9896
commit
fd3d1ae86a
1 changed files with 6 additions and 1 deletions
|
@ -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 <<EOF
|
||||
{"phplib_dir" : "$PHPLIB_DIR",
|
||||
"stage" : "$STAGE",
|
||||
|
|
Loading…
Reference in a new issue