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"
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue