aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-11-30 22:03:51 -0500
committerBill Nottingham <notting@redhat.com>2010-11-30 22:04:17 -0500
commit31b5c7f2672995f699dba2691aabf6e810a14b0f (patch)
tree4d2050b2cc7046bbd3cafe6f370bfca4f30caf23
parent76865d9915d0db1a152d8bbff0a0f78d6a0a57e9 (diff)
downloadinitscripts-31b5c7f2672995f699dba2691aabf6e810a14b0f.tar
initscripts-31b5c7f2672995f699dba2691aabf6e810a14b0f.tar.gz
initscripts-31b5c7f2672995f699dba2691aabf6e810a14b0f.tar.bz2
initscripts-31b5c7f2672995f699dba2691aabf6e810a14b0f.tar.xz
initscripts-31b5c7f2672995f699dba2691aabf6e810a14b0f.zip
Squash warning on opening /dev/stderr (#650103)
-rw-r--r--rc.d/init.d/functions2
1 files changed, 1 insertions, 1 deletions
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