1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Update iiab-network

This commit is contained in:
A Holt 2017-12-12 01:17:12 -05:00 committed by GitHub
parent e931603441
commit d7f275448d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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