diff options
author | Bill Nottingham <notting@redhat.com> | 2010-02-17 16:07:27 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-03-01 16:03:37 -0500 |
commit | fca418e42dd0291a5ea7a6490a14dab90a0e5511 (patch) | |
tree | d455945ec6df35e33816eb585b21ffe49369625a /sysconfig/network-scripts | |
parent | ec7c088ad300e79a4bed6310c3a19e6c9bc03c4e (diff) | |
download | initscripts-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/network-scripts')
-rw-r--r-- | 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 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 |