Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/root Simplify the tset crap, and do not set $HOME gratui...



details:   https://anonhg.NetBSD.org/src/rev/a1f0e81eca6c
branches:  trunk
changeset: 482698:a1f0e81eca6c
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Sat Feb 19 18:39:01 2000 +0000

description:
Simplify the tset crap, and do not set $HOME gratuitously.

diffstat:

 etc/root/dot.login   |   9 ++-------
 etc/root/dot.profile |  10 ++--------
 2 files changed, 4 insertions(+), 15 deletions(-)

diffs (41 lines):

diff -r 3596f4498b78 -r a1f0e81eca6c etc/root/dot.login
--- a/etc/root/dot.login        Sat Feb 19 17:57:03 2000 +0000
+++ b/etc/root/dot.login        Sat Feb 19 18:39:01 2000 +0000
@@ -1,11 +1,6 @@
-#      $NetBSD: dot.login,v 1.6 2000/02/16 03:07:09 jwise Exp $
+#      $NetBSD: dot.login,v 1.7 2000/02/19 18:39:01 mycroft Exp $
 
-if ( $TERM == unknown ) then
-       tset -Q \?$TERM
-else
-       echo "Terminal type is '$TERM'."
-       tset -Q $TERM
-endif
+tset -Qrm 'unknown:?unknown'
 
 # Do not display in 'su -' case
 if ( ! $?SU_FROM ) then
diff -r 3596f4498b78 -r a1f0e81eca6c etc/root/dot.profile
--- a/etc/root/dot.profile      Sat Feb 19 17:57:03 2000 +0000
+++ b/etc/root/dot.profile      Sat Feb 19 18:39:01 2000 +0000
@@ -1,18 +1,12 @@
-#      $NetBSD: dot.profile,v 1.13 2000/02/16 03:07:09 jwise Exp $
+#      $NetBSD: dot.profile,v 1.14 2000/02/19 18:39:01 mycroft Exp $
 
 export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin
 export PATH=${PATH}:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
 
 export BLOCKSIZE=1k
-export HOME=/root
 
 if [ -x /usr/bin/tset ]; then
-       if [ x$TERM = xunknown ]; then
-               tset -Q \?$TERM
-       else
-               echo "Terminal type is '$TERM'."
-               tset -Q $TERM
-       fi
+       tset -Qrm 'unknown:?unknown'
 fi
 
 



Home | Main Index | Thread Index | Old Index