diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2013-08-30 15:10:18 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2013-08-30 15:17:45 +0200 |
commit | 414fab206791d07beb7d6bd6c2248c657ccb2eb1 (patch) | |
tree | 93142106066f0ef6d0482cd6d6917f9449dd2dc6 /sysconfig/network-scripts/network-functions | |
parent | 2769dbcf9daa7a661b4b00de9f0d1c8d2605b1c7 (diff) | |
download | initscripts-414fab206791d07beb7d6bd6c2248c657ccb2eb1.tar initscripts-414fab206791d07beb7d6bd6c2248c657ccb2eb1.tar.gz initscripts-414fab206791d07beb7d6bd6c2248c657ccb2eb1.tar.bz2 initscripts-414fab206791d07beb7d6bd6c2248c657ccb2eb1.tar.xz initscripts-414fab206791d07beb7d6bd6c2248c657ccb2eb1.zip |
update functions who call nmcli (#1002958)
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index c699fc0d..cd4171fe 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -271,7 +271,7 @@ do_netreport () is_nm_running () { - [ "$(LANG=C nmcli -t --fields running nm status 2>/dev/null)" = "running" ] + [ "$(LANG=C nmcli -t --fields running general status 2>/dev/null)" = "running" ] } is_nm_active () @@ -281,7 +281,7 @@ is_nm_active () is_nm_device_unmanaged () { - LANG=C nmcli -t --fields GENERAL dev list iface "${1}" 2>/dev/null | awk -F ':' '/GENERAL.STATE/ { if ($2 == "unmanaged") exit 0 ; else exit 1; }' + LANG=C nmcli -t --fields GENERAL dev show "${1}" 2>/dev/null | awk -F ':' '/GENERAL.STATE/ { if ($2 == "unmanaged") exit 0 ; else exit 1; }' } # Sets $alias to the device module if $? != 0 |