[prev in list] [next in list] [prev in thread] [next in thread]
List: initscripts-devel
Subject: [PATCH 03/11] Add a function that determines the status of NetworkManager; use it.
From: notting () redhat ! com (Bill Nottingham)
Date: 2010-02-17 21:44:34
Message-ID: 1266443082-16676-4-git-send-email-notting () redhat ! com
[Download RAW message or body]
Signed-off-by: Bill Nottingham <notting at redhat.com>
---
sysconfig/network-scripts/network-functions | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 96df715..313e42f 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 ()
{
--
1.6.6
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic