aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2013-09-10 12:50:32 +0200
committerLukas Nykryn <lnykryn@redhat.com>2014-01-14 13:25:03 +0100
commit1ca2c086dcc13d113a8385dbefe4ffe28fbd3948 (patch)
tree7acb633127650ac625d2cc39ca7ea61eb7c4a0e2 /sysconfig/network-scripts/ifdown
parentf171c45d652a8afebab75e38f132e36e308de18a (diff)
downloadinitscripts-1ca2c086dcc13d113a8385dbefe4ffe28fbd3948.tar
initscripts-1ca2c086dcc13d113a8385dbefe4ffe28fbd3948.tar.gz
initscripts-1ca2c086dcc13d113a8385dbefe4ffe28fbd3948.tar.bz2
initscripts-1ca2c086dcc13d113a8385dbefe4ffe28fbd3948.tar.xz
initscripts-1ca2c086dcc13d113a8385dbefe4ffe28fbd3948.zip
ifdown: fix typo in nmcli call (#1006222)
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-xsysconfig/network-scripts/ifdown4
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