1
0
Fork 0
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:
A Holt 2017-12-12 09:33:20 -05:00 committed by GitHub
parent d7f275448d
commit ea2c395fc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,9 @@ 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
# if [[ `which nmcli` ]]; then
if which nmcli; then
nmcli d >> iiab-network.log
nmcli c >> iiab-network.log
fi