aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2012-03-14 16:10:39 +0000
committerEd Schouten <ed@FreeBSD.org>2012-03-14 16:10:39 +0000
commit93bd0cdedd5ef285de4a7540281a0382d759e4fc (patch)
tree48db4c9954e269739ed90780b94f92e4536fb210 /etc
parentdb62ced2382c1db092292039ac0ccd5b930af9eb (diff)
downloadsrc-93bd0cdedd5ef285de4a7540281a0382d759e4fc.tar.gz
src-93bd0cdedd5ef285de4a7540281a0382d759e4fc.zip
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
Notes
Notes: svn path=/head/; revision=232976
Diffstat (limited to 'etc')
-rw-r--r--etc/rc2
-rw-r--r--etc/rc.shutdown2
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index cd22116e56b6..99cfda87de6f 100644
--- a/etc/rc
+++ b/etc/rc
@@ -38,7 +38,7 @@
# first before contemplating any changes here. If you do need to change
# this file for some reason, we would like to know about it.
-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.
diff --git a/etc/rc.shutdown b/etc/rc.shutdown
index dc1ca1357df8..81cc9944a328 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.