aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2010-11-01 10:37:03 +0100
committerBill Nottingham <notting@redhat.com>2010-11-01 10:40:38 -0400
commit1dedc710c01a48fa493c2922e4000e64415bb120 (patch)
tree6718f493dde8fd7d786a5fb32b8b02e8225c76eb /sysconfig/network-scripts/network-functions
parent9d2e2d459038a25477dacde8239f646e935862bd (diff)
downloadinitscripts-1dedc710c01a48fa493c2922e4000e64415bb120.tar
initscripts-1dedc710c01a48fa493c2922e4000e64415bb120.tar.gz
initscripts-1dedc710c01a48fa493c2922e4000e64415bb120.tar.bz2
initscripts-1dedc710c01a48fa493c2922e4000e64415bb120.tar.xz
initscripts-1dedc710c01a48fa493c2922e4000e64415bb120.zip
Fix ifdown calling nmcli for NM-managed devices; others are handled by ifdown-${DEVICETYPE} (#612934).
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r--sysconfig/network-scripts/network-functions5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index e72c8098..68ff961a 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -209,6 +209,11 @@ is_nm_active ()
LANG=C nmcli -t --fields device,state dev status 2>/dev/null | grep -q "^${1}:connected$"
}
+is_nm_device_unmanaged ()
+{
+ LANG=C nmcli -t --fields device,state dev status 2>/dev/null | grep -q "^${1}:unmanaged$"
+}
+
# Sets $alias to the device module if $? != 0
is_available ()
{