diff options
author | Bill Nottingham <notting@redhat.com> | 2010-11-30 22:03:51 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-11-30 22:03:51 -0500 |
commit | 6890d8788cda23492f14839a890aebf457bf3725 (patch) | |
tree | a629b2468b7167ad24e394fd539ce519a1a072cb | |
parent | ff5befb95b133cc1da3f32ffcd9f3cef779244b6 (diff) | |
download | initscripts-6890d8788cda23492f14839a890aebf457bf3725.tar initscripts-6890d8788cda23492f14839a890aebf457bf3725.tar.gz initscripts-6890d8788cda23492f14839a890aebf457bf3725.tar.bz2 initscripts-6890d8788cda23492f14839a890aebf457bf3725.tar.xz initscripts-6890d8788cda23492f14839a890aebf457bf3725.zip |
Squash warning on opening /dev/stderr (#650103)
-rw-r--r-- | rc.d/init.d/functions | 2 |
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 |