From 56ac215dd147c559558009ca899dc33d9932dce2 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 2 Jun 2011 11:23:14 -0400 Subject: Clean up some noise if stderr isn't available. --- rc.d/init.d/functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc.d/init.d') 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 -- cgit v1.2.1