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:
parent
e931603441
commit
d7f275448d
1 changed files with 4 additions and 4 deletions
|
@ -5,8 +5,8 @@ CWD=`pwd`
|
||||||
export ANSIBLE_LOG_PATH="$CWD/iiab-network.log"
|
export ANSIBLE_LOG_PATH="$CWD/iiab-network.log"
|
||||||
|
|
||||||
if [ ! -f iiab-network.yml ]; then
|
if [ ! -f iiab-network.yml ]; then
|
||||||
echo "IIAB Playbook not found."
|
echo "iiab-network.yml not found in current directory."
|
||||||
echo "Please run this command from the top level of the git repo."
|
echo "Please rerun this command from the top level of the git repo."
|
||||||
echo "Exiting."
|
echo "Exiting."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -28,11 +28,11 @@ End=`date`
|
||||||
# Record critical diagnostics to [/opt/iiab/iiab/]iiab-network.log
|
# Record critical diagnostics to [/opt/iiab/iiab/]iiab-network.log
|
||||||
echo "" >> iiab-network.log
|
echo "" >> iiab-network.log
|
||||||
# redhat path
|
# redhat path
|
||||||
if [ "OS" == "centos" ] || [ "OS" == "fedora" ]; then
|
if [ "OS" == "centos" ] || [ "OS" == "fedora" ]; then
|
||||||
ls -la /etc/sys*/net*/ifcfg* >> iiab-network.log
|
ls -la /etc/sys*/net*/ifcfg* >> iiab-network.log
|
||||||
fi
|
fi
|
||||||
# Ubuntu desktop might be using NM - split out.
|
# Ubuntu desktop might be using NM - split out.
|
||||||
if [ $(which nmcli) ]; then
|
if [[ `which nmcli` ]]; then
|
||||||
nmcli d >> iiab-network.log
|
nmcli d >> iiab-network.log
|
||||||
nmcli c >> iiab-network.log
|
nmcli c >> iiab-network.log
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue