From 6890d8788cda23492f14839a890aebf457bf3725 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 30 Nov 2010 22:03:51 -0500 Subject: Squash warning on opening /dev/stderr (#650103) --- rc.d/init.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 361a6472..48ed4d79 100644 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -48,7 +48,7 @@ systemctl_redirect () { # Get a sane screen width [ -z "${COLUMNS:-}" ] && COLUMNS=80 -[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype < /dev/stderr)" +[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype < /dev/stderr 2>/dev/null)" if [ -z "${NOLOCALE:-}" ] && [ -z "${LANGSH_SOURCED:-}" ] && [ -f /etc/sysconfig/i18n ] ; then . /etc/profile.d/lang.sh 2>/dev/null -- cgit v1.2.1