summaryrefslogtreecommitdiffstats
path: root/etc/rc.shutdown
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2012-03-14 16:10:39 +0000
committered <ed@FreeBSD.org>2012-03-14 16:10:39 +0000
commita6abf8bf85afb844a1c9fe80fb6579823cbf9259 (patch)
tree48db4c9954e269739ed90780b94f92e4536fb210 /etc/rc.shutdown
parent59d9d84ca4982332a24eff6208e76baa629a923f (diff)
downloadFreeBSD-src-a6abf8bf85afb844a1c9fe80fb6579823cbf9259.zip
FreeBSD-src-a6abf8bf85afb844a1c9fe80fb6579823cbf9259.tar.gz
Hide stty(1) errors.
If rc(8) is executed without using a TTY, this error appears at the beginning: stty: stdin isn't a terminal Because this is to be expected and of course not harmful, it is better to simply hide the error message. MFC after: 1 week
Diffstat (limited to 'etc/rc.shutdown')
-rw-r--r--etc/rc.shutdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.shutdown b/etc/rc.shutdown
index dc1ca13..81cc994 100644
--- a/etc/rc.shutdown
+++ b/etc/rc.shutdown
@@ -32,7 +32,7 @@
# Output and errors are directed to console by init, and the
# console is the controlling terminal.
-stty status '^T'
+stty status '^T' 2> /dev/null
# Set shell to ignore SIGINT (2), but not children;
# shell catches SIGQUIT (3) and returns to single user after fsck.
OpenPOWER on IntegriCloud