[prev in list] [next in list] [prev in thread] [next in thread]
List: initscripts-devel
Subject: [PATCH 09/11] Fix is_nm_active
From: notting () redhat ! com (Bill Nottingham)
Date: 2010-02-17 21:44:40
Message-ID: 1266443082-16676-10-git-send-email-notting () redhat ! com
[Download RAW message or body]
Some versions of nmcli have trailing whitespace.
Signed-off-by: Bill Nottingham <notting at redhat.com>
---
sysconfig/network-scripts/network-functions | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index a29c976..43f37af 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -202,7 +202,7 @@ is_nm_running ()
is_nm_active ()
{
- LANG=C nmcli -t dev status | grep -Eq "^${1}[[:space:]]*.*[[:space:]]*connected$"
+ LANG=C nmcli -t dev status | grep -Eq "^${1}[[:space:]]*.*[[:space:]]*connected"
}
# Sets $alias to the device module if $? != 0
--
1.6.6
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic