aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2011-06-02 11:23:14 -0400
committerBill Nottingham <notting@redhat.com>2011-06-02 11:23:14 -0400
commit56ac215dd147c559558009ca899dc33d9932dce2 (patch)
treee57931e3d844688b707df59709c97612bde904aa /rc.d
parent60ddb21fcdfb0594a35978aa0b04af4527c46d6e (diff)
downloadinitscripts-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.
Diffstat (limited to 'rc.d')
-rw-r--r--rc.d/init.d/functions4
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