Browse Source

Only have tset prompt for the terminal type if it is "unknown" or

not listed in /etc/ttys.  OK deraadt@ guenther@
OPENBSD_4_6
millert 15 years ago
parent
commit
3fd626276d
2 changed files with 12 additions and 12 deletions
  1. +9
    -9
      src/etc/root/dot.login
  2. +3
    -3
      src/etc/root/dot.profile

+ 9
- 9
src/etc/root/dot.login View File

@ -1,15 +1,15 @@
# $OpenBSD: dot.login,v 1.11 2005/03/30 19:50:07 deraadt Exp $
# $OpenBSD: dot.login,v 1.12 2009/05/01 18:08:42 millert Exp $
# #
# csh login file # csh login file
set tterm='?'$TERM
set noglob
onintr finish
eval `tset -s -Q $tterm`
finish:
unset noglob
unset tterm
onintr
if ( -x /usr/bin/tset ) then
set noglob histchars=""
onintr finish
eval `tset -sQ '-munknown:?vt220' $TERM`
finish:
unset noglob histchars
onintr
endif
if ( `logname` == `whoami` ) then if ( `logname` == `whoami` ) then
echo "Read the afterboot(8) man page for administration advice." echo "Read the afterboot(8) man page for administration advice."


+ 3
- 3
src/etc/root/dot.profile View File

@ -1,4 +1,4 @@
# $OpenBSD: dot.profile,v 1.6 2009/04/27 05:02:12 deraadt Exp $
# $OpenBSD: dot.profile,v 1.7 2009/05/01 18:08:43 millert Exp $
# #
# sh/ksh initialization # sh/ksh initialization
@ -8,6 +8,6 @@ export PATH
export HOME export HOME
umask 022 umask 022
if [ x"$TERM" != xxterm -a -x /usr/bin/tset ]; then
eval `/usr/bin/tset -sQ \?$TERM`
if [ -x /usr/bin/tset ]; then
eval `/usr/bin/tset -sQ '-munknown:?vt220' $TERM`
fi fi

Loading…
Cancel
Save