aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/functions
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2012-03-09 11:31:48 -0500
committerBill Nottingham <notting@redhat.com>2012-03-09 11:31:48 -0500
commit0d464a67b74c213deb8328d277df732565134b02 (patch)
treea4ae9ad02808dbf565217117331e900937c263ce /rc.d/init.d/functions
parentcdd06df0a942caf3deb470563273ed8a30556ec4 (diff)
downloadinitscripts-0d464a67b74c213deb8328d277df732565134b02.tar
initscripts-0d464a67b74c213deb8328d277df732565134b02.tar.gz
initscripts-0d464a67b74c213deb8328d277df732565134b02.tar.bz2
initscripts-0d464a67b74c213deb8328d277df732565134b02.tar.xz
initscripts-0d464a67b74c213deb8328d277df732565134b02.zip
If /dev/stderr also isn't readable, don't bother with consoletype.
Diffstat (limited to 'rc.d/init.d/functions')
-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 1437b252..7754ff21 100644
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -54,7 +54,7 @@ systemctl_redirect () {
[ -z "${COLUMNS:-}" ] && COLUMNS=80
if [ -z "${CONSOLETYPE:-}" ]; then
- if [ -c "/dev/stderr" ]; then
+ if [ -c "/dev/stderr" -a -r "/dev/stderr" ]; then
CONSOLETYPE="$(/sbin/consoletype < /dev/stderr 2>/dev/null)"
else
CONSOLETYPE="serial"