aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-02-17 16:07:27 -0500
committerBill Nottingham <notting@redhat.com>2010-03-01 16:03:37 -0500
commitfca418e42dd0291a5ea7a6490a14dab90a0e5511 (patch)
treed455945ec6df35e33816eb585b21ffe49369625a /sysconfig
parentec7c088ad300e79a4bed6310c3a19e6c9bc03c4e (diff)
downloadinitscripts-fca418e42dd0291a5ea7a6490a14dab90a0e5511.tar
initscripts-fca418e42dd0291a5ea7a6490a14dab90a0e5511.tar.gz
initscripts-fca418e42dd0291a5ea7a6490a14dab90a0e5511.tar.bz2
initscripts-fca418e42dd0291a5ea7a6490a14dab90a0e5511.tar.xz
initscripts-fca418e42dd0291a5ea7a6490a14dab90a0e5511.zip
Fix is_nm_active
Some versions of nmcli have trailing whitespace.
Diffstat (limited to 'sysconfig')
-rw-r--r--sysconfig/network-scripts/network-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index a29c9764..43f37af2 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