svn commit: r233943 - stable/9/etc

Ed Schouten ed at FreeBSD.org
Fri Apr 6 11:07:45 UTC 2012


Author: ed
Date: Fri Apr  6 11:07:44 2012
New Revision: 233943
URL: http://svn.freebsd.org/changeset/base/233943

Log:
  MFC r232976:
  
    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.

Modified:
  stable/9/etc/rc
  stable/9/etc/rc.shutdown
Directory Properties:
  stable/9/etc/   (props changed)

Modified: stable/9/etc/rc
==============================================================================
--- stable/9/etc/rc	Fri Apr  6 11:06:47 2012	(r233942)
+++ stable/9/etc/rc	Fri Apr  6 11:07:44 2012	(r233943)
@@ -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.

Modified: stable/9/etc/rc.shutdown
==============================================================================
--- stable/9/etc/rc.shutdown	Fri Apr  6 11:06:47 2012	(r233942)
+++ stable/9/etc/rc.shutdown	Fri Apr  6 11:07:44 2012	(r233943)
@@ -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.


More information about the svn-src-stable mailing list