Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/root 1.) bring over the second half of David Brownlee's ...
details: https://anonhg.NetBSD.org/src/rev/aaddc63d286d
branches: trunk
changeset: 482588:aaddc63d286d
user: jwise <jwise%NetBSD.org@localhost>
date: Wed Feb 16 03:07:09 2000 +0000
description:
1.) bring over the second half of David Brownlee's change to dot.login --
don't query the user for terminal type if the type is not `unknown'
2.) change this a little in both the csh and the [k]sh cases -- do call
tset(1) even if the terminal type is known (so that TERMCAP is set
properly, but don't have it query the user.
diffstat:
etc/root/dot.login | 3 ++-
etc/root/dot.profile | 10 ++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)
diffs (41 lines):
diff -r e754bb72dfd6 -r aaddc63d286d etc/root/dot.login
--- a/etc/root/dot.login Wed Feb 16 02:02:02 2000 +0000
+++ b/etc/root/dot.login Wed Feb 16 03:07:09 2000 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: dot.login,v 1.5 2000/02/15 19:29:54 abs Exp $
+# $NetBSD: dot.login,v 1.6 2000/02/16 03:07:09 jwise Exp $
if ( $TERM == unknown ) then
tset -Q \?$TERM
else
echo "Terminal type is '$TERM'."
+ tset -Q $TERM
endif
# Do not display in 'su -' case
diff -r e754bb72dfd6 -r aaddc63d286d etc/root/dot.profile
--- a/etc/root/dot.profile Wed Feb 16 02:02:02 2000 +0000
+++ b/etc/root/dot.profile Wed Feb 16 03:07:09 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: dot.profile,v 1.12 2000/02/16 02:02:02 jwise Exp $
+# $NetBSD: dot.profile,v 1.13 2000/02/16 03:07:09 jwise 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
@@ -7,9 +7,15 @@
export HOME=/root
if [ -x /usr/bin/tset ]; then
- eval `/usr/bin/tset -sQ \?$TERM`
+ if [ x$TERM = xunknown ]; then
+ tset -Q \?$TERM
+ else
+ echo "Terminal type is '$TERM'."
+ tset -Q $TERM
+ fi
fi
+
umask 022
#ulimit -c 0
Home |
Main Index |
Thread Index |
Old Index