2e46623412
- fix shutdown, if /dev/console is not writeable - fixed fips mode Resolves: rhbz#956521
23 lines
769 B
Diff
23 lines
769 B
Diff
From 3be5d63c2fe24252fff92ea9c0ad43d4c7e579bd Mon Sep 17 00:00:00 2001
|
|
From: Harald Hoyer <harald@redhat.com>
|
|
Date: Fri, 19 Apr 2013 15:00:20 +0200
|
|
Subject: [PATCH] shutdown: redirect output to /dev/console only if it exists
|
|
|
|
---
|
|
modules.d/99shutdown/shutdown.sh | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/modules.d/99shutdown/shutdown.sh b/modules.d/99shutdown/shutdown.sh
|
|
index 6457cb0..f7b8509 100755
|
|
--- a/modules.d/99shutdown/shutdown.sh
|
|
+++ b/modules.d/99shutdown/shutdown.sh
|
|
@@ -8,7 +8,7 @@
|
|
# Harald Hoyer <harald@redhat.com>
|
|
ACTION="$1"
|
|
|
|
-exec </dev/console >>/dev/console 2>>/dev/console
|
|
+[ test -w /dev/console ] && exec </dev/console >>/dev/console 2>>/dev/console
|
|
|
|
export TERM=linux
|
|
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
|