aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-05-05 12:20:00 -0400
committerBill Nottingham <notting@redhat.com>2010-05-05 12:20:00 -0400
commit2b784ad0b77c5a4f15e9af1535ed79b35d8ae6f4 (patch)
tree286ec7fc69739f6f21c2f90cac184f68faa4d809 /sysconfig/network-scripts/ifdown
parent722c1ebc058e181c65996b32f3a1147159969975 (diff)
downloadinitscripts-2b784ad0b77c5a4f15e9af1535ed79b35d8ae6f4.tar
initscripts-2b784ad0b77c5a4f15e9af1535ed79b35d8ae6f4.tar.gz
initscripts-2b784ad0b77c5a4f15e9af1535ed79b35d8ae6f4.tar.bz2
initscripts-2b784ad0b77c5a4f15e9af1535ed79b35d8ae6f4.tar.xz
initscripts-2b784ad0b77c5a4f15e9af1535ed79b35d8ae6f4.zip
Update for new nmcli syntax.initscripts-9.12-1
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 addf7345..f308d317 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 con status | awk "\$4 == \"$UUID\" { print \$3 }")
+ DEVICE=$(nmcli -t --fields uuid,devices con status | awk -F ':' "\$1 == \"$UUID\" { print \$2 }")
fi
if [ -n "$DEVICE" ] && is_nm_active "$DEVICE" ; then
nmcli dev disconnect iface "$DEVICE"