mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
shorter: if <command>; then
This commit is contained in:
parent
d7f275448d
commit
ea2c395fc9
1 changed files with 3 additions and 1 deletions
|
@ -32,7 +32,9 @@ 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
|
||||||
|
# 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