From 7623065694b1b84bf99f2425ff91cf5655e4d981 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 16 Feb 2010 14:06:16 -0500 Subject: Add a function that determines the status of NetworkManager; use it. --- sysconfig/network-scripts/network-functions | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sysconfig/network-scripts/network-functions') diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 96df715b..313e42fd 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -138,6 +138,7 @@ source_config () else ISALIAS=no fi + is_nm_running && USE_NM=true } @@ -190,6 +191,11 @@ do_netreport () ) } +is_nm_running () +{ + LANG=C nmcli nm status | grep -Eq "NM running:[[:space:]]+running" +} + # Sets $alias to the device module if $? != 0 is_available () { -- cgit v1.2.1