diff options
author | Bill Nottingham <notting@redhat.com> | 2010-03-05 14:25:24 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-03-05 14:25:24 -0500 |
commit | bcb823034c4f36c8ae6ad01fee6032dc6cb57fef (patch) | |
tree | f1fe54493437d75b72724ecdd871302d5d081e84 /sysconfig/network-scripts | |
parent | df1656625a2bca974e7171159eff731ee5ff76ed (diff) | |
download | initscripts-bcb823034c4f36c8ae6ad01fee6032dc6cb57fef.tar initscripts-bcb823034c4f36c8ae6ad01fee6032dc6cb57fef.tar.gz initscripts-bcb823034c4f36c8ae6ad01fee6032dc6cb57fef.tar.bz2 initscripts-bcb823034c4f36c8ae6ad01fee6032dc6cb57fef.tar.xz initscripts-bcb823034c4f36c8ae6ad01fee6032dc6cb57fef.zip |
Redirect error messages to /dev/null to catch if nmcli is not installed. (#570828, <zing@fastmail.fm>)
Diffstat (limited to 'sysconfig/network-scripts')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index e498553b..c8846ef8 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -201,12 +201,12 @@ do_netreport () is_nm_running () { - LANG=C nmcli nm status | grep -Eq "NM running:[[:space:]]+running" + LANG=C nmcli nm status 2>/dev/null| grep -Eq "NM running:[[:space:]]+running" } is_nm_active () { - LANG=C nmcli -t dev status | grep -Eq "^${1}[[:space:]]*.*[[:space:]]*connected" + LANG=C nmcli -t dev status 2>/dev/null| grep -Eq "^${1}[[:space:]]*.*[[:space:]]*connected" } # Sets $alias to the device module if $? != 0 |