diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2013-09-10 12:50:32 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2013-09-10 13:16:12 +0200 |
commit | 27733f9aa7f346d27215fb9f7cc7c0a6494fd771 (patch) | |
tree | 8520b09098da8f290d5f00e710f878be10bf22ea | |
parent | 851a3edfad781cd2267822509eaa4634189b09d6 (diff) | |
download | initscripts-27733f9aa7f346d27215fb9f7cc7c0a6494fd771.tar initscripts-27733f9aa7f346d27215fb9f7cc7c0a6494fd771.tar.gz initscripts-27733f9aa7f346d27215fb9f7cc7c0a6494fd771.tar.bz2 initscripts-27733f9aa7f346d27215fb9f7cc7c0a6494fd771.tar.xz initscripts-27733f9aa7f346d27215fb9f7cc7c0a6494fd771.zip |
ifdown: fix typo in nmcli call (#1006222)
-rwxr-xr-x | sysconfig/network-scripts/ifdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index 7fbedbea..510b5bcf 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -43,11 +43,11 @@ fi if [ "$_use_nm" = "true" ]; then if [ -n "$UUID" -a -z "$DEVICE" ]; then - DEVICE=$(nmcli r -t --fields uuid,devices con show active | awk -F ':' "\$1 == \"$UUID\" { print \$2 }") + DEVICE=$(nmcli -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 - nmcli dev disconnect iface "$DEVICE" + nmcli dev disconnect "$DEVICE" exit $? fi exit 0 |