diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2010-11-01 10:37:03 +0100 |
---|---|---|
committer | Petr Lautrbach <plautrba@redhat.com> | 2010-12-06 15:41:44 +0100 |
commit | 57fcce60b5b8fdc81011411032f26818aa483ace (patch) | |
tree | 8259387ab140e0c6e0f1ffb549b6af09eb18e5d5 /sysconfig/network-scripts/ifdown | |
parent | 4c4228ea016f09c6097b350d823b330a2e73db98 (diff) | |
download | initscripts-57fcce60b5b8fdc81011411032f26818aa483ace.tar initscripts-57fcce60b5b8fdc81011411032f26818aa483ace.tar.gz initscripts-57fcce60b5b8fdc81011411032f26818aa483ace.tar.bz2 initscripts-57fcce60b5b8fdc81011411032f26818aa483ace.tar.xz initscripts-57fcce60b5b8fdc81011411032f26818aa483ace.zip |
Fix ifdown calling nmcli for NM-managed devices; others are handled by ifdown-${DEVICETYPE} (#612934).
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-x | sysconfig/network-scripts/ifdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index f308d317..db045da4 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -45,7 +45,7 @@ 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 }") fi - if [ -n "$DEVICE" ] && is_nm_active "$DEVICE" ; then + if [ -n "$DEVICE" ] && ! is_nm_device_unmanaged "$DEVICE" ; then nmcli dev disconnect iface "$DEVICE" exit $? fi |