diff options
author | Bill Nottingham <notting@redhat.com> | 2011-06-02 11:23:14 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2011-06-02 11:23:14 -0400 |
commit | 56ac215dd147c559558009ca899dc33d9932dce2 (patch) | |
tree | e57931e3d844688b707df59709c97612bde904aa | |
parent | 60ddb21fcdfb0594a35978aa0b04af4527c46d6e (diff) | |
download | initscripts-56ac215dd147c559558009ca899dc33d9932dce2.tar initscripts-56ac215dd147c559558009ca899dc33d9932dce2.tar.gz initscripts-56ac215dd147c559558009ca899dc33d9932dce2.tar.bz2 initscripts-56ac215dd147c559558009ca899dc33d9932dce2.tar.xz initscripts-56ac215dd147c559558009ca899dc33d9932dce2.zip |
Clean up some noise if stderr isn't available.
-rw-r--r-- | rc.d/init.d/functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 8a3177a1..1b0b4843 100644 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -55,9 +55,9 @@ systemctl_redirect () { if [ -z "${CONSOLETYPE:-}" ]; then if [ -r "/dev/stderr" ]; then - CONSOLETYPE="$(/sbin/consoletype < /dev/stderr)" + CONSOLETYPE="$(/sbin/consoletype < /dev/stderr 2>/dev/null)" else - CONSOLETYPE="$(/sbin/consoletype)" + CONSOLETYPE="$(/sbin/consoletype 2>/dev/null)" fi fi |