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
This commit is contained in:
Ed Schouten 2012-03-14 16:10:39 +00:00
parent db62ced238
commit 93bd0cdedd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232976
2 changed files with 2 additions and 2 deletions

2
etc/rc
View File

@ -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.

View File

@ -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.