From 0ab245dec546bb7bee0ecaa1d30daaec16ea9561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Mon, 1 Nov 2010 10:37:03 +0100 Subject: Fix ifdown calling nmcli for NM-managed devices; others are handled by ifdown-${DEVICETYPE} (#612934). --- sysconfig/network-scripts/ifdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysconfig/network-scripts/ifdown') 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 -- cgit v1.2.1