diff --git a/iiab-network b/iiab-network index b7b42b7d1..9ab689069 100755 --- a/iiab-network +++ b/iiab-network @@ -5,8 +5,8 @@ CWD=`pwd` export ANSIBLE_LOG_PATH="$CWD/iiab-network.log" if [ ! -f iiab-network.yml ]; then - echo "IIAB Playbook not found." - echo "Please run this command from the top level of the git repo." + echo "iiab-network.yml not found in current directory." + echo "Please rerun this command from the top level of the git repo." echo "Exiting." exit 1 fi @@ -28,11 +28,11 @@ End=`date` # Record critical diagnostics to [/opt/iiab/iiab/]iiab-network.log echo "" >> iiab-network.log # redhat path -if [ "OS" == "centos" ] || [ "OS" == "fedora" ]; then +if [ "OS" == "centos" ] || [ "OS" == "fedora" ]; then ls -la /etc/sys*/net*/ifcfg* >> iiab-network.log fi # Ubuntu desktop might be using NM - split out. -if [ $(which nmcli) ]; then +if [[ `which nmcli` ]]; then nmcli d >> iiab-network.log nmcli c >> iiab-network.log fi