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:
parent
db62ced238
commit
93bd0cdedd
2
etc/rc
2
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.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user