aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2013-08-30 15:10:18 +0200
committerLukas Nykryn <lnykryn@redhat.com>2013-08-30 15:17:45 +0200
commit414fab206791d07beb7d6bd6c2248c657ccb2eb1 (patch)
tree93142106066f0ef6d0482cd6d6917f9449dd2dc6 /sysconfig/network-scripts/ifdown
parent2769dbcf9daa7a661b4b00de9f0d1c8d2605b1c7 (diff)
downloadinitscripts-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/ifdown')
-rwxr-xr-xsysconfig/network-scripts/ifdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index 65608ee2..7fbedbea 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -43,7 +43,7 @@ fi
if [ "$_use_nm" = "true" ]; then
if [ -n "$UUID" -a -z "$DEVICE" ]; then
- DEVICE=$(nmcli -t --fields uuid,devices con status | awk -F ':' "\$1 == \"$UUID\" { print \$2 }")
+ DEVICE=$(nmcli r -t --fields uuid,devices con show active | awk -F ':' "\$1 == \"$UUID\" { print \$2 }")
fi
if [ -n "$DEVICE" ] && ! is_nm_device_unmanaged "$DEVICE" ; then
if ! LC_ALL=C nmcli -t -f STATE,DEVICE dev status | egrep -q "^(failed|disconnected|unmanaged|unavailable):$DEVICE$"; then