Source-Changes-HG archive

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

[src/trunk]: src/distrib/hp300/ramdisk Add tset to ramdisk. Use it to set TE...



details:   https://anonhg.NetBSD.org/src/rev/dd6a3fc20bba
branches:  trunk
changeset: 534824:dd6a3fc20bba
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Sun Aug 04 01:21:48 2002 +0000

description:
Add tset to ramdisk.  Use it to set TERM before running sysinst.

diffstat:

 distrib/hp300/ramdisk/dot.profile |  20 +++++++++++++++++---
 distrib/hp300/ramdisk/list        |   3 ++-
 2 files changed, 19 insertions(+), 4 deletions(-)

diffs (58 lines):

diff -r ff8a794f16cc -r dd6a3fc20bba distrib/hp300/ramdisk/dot.profile
--- a/distrib/hp300/ramdisk/dot.profile Sun Aug 04 01:16:09 2002 +0000
+++ b/distrib/hp300/ramdisk/dot.profile Sun Aug 04 01:21:48 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: dot.profile,v 1.2 2002/02/23 22:00:28 gmcgarry Exp $
+#      $NetBSD: dot.profile,v 1.3 2002/08/04 01:21:48 gmcgarry Exp $
 #
 # Copyright (c) 1997 Perry E. Metzger
 # Copyright (c) 1994 Christopher G. Demetriou
@@ -35,8 +35,6 @@
 
 PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
 export PATH
-TERM=hp300h
-export TERM
 HOME=/
 export HOME
 BLOCKSIZE=1k
@@ -52,6 +50,22 @@
        DONEPROFILE=YES
        export DONEPROFILE
 
+       # get the terminal type
+       _loop=""
+       while [ "X${_loop}" = X"" ]; do
+               echo "" >& 2
+               echo "Setting terminal type.  Options:" >& 2
+               echo "" >& 2
+               echo "  hp300h  for graphics console" >& 2
+               echo "  vt100   for dumb serial terminal" >& 2
+               echo "  xterm   for xterm." >& 2
+               echo "" >& 2
+               eval `tset -s -m ":?$TERM"`
+               if [ "X${TERM}" != X"unknown" ]; then
+                       _loop="done"
+               fi
+       done
+
        # set up some sane defaults
        echo 'erase ^?, werase ^W, kill ^U, intr ^C'
        stty newcrt werase ^W intr ^C kill ^U erase ^? 9600
diff -r ff8a794f16cc -r dd6a3fc20bba distrib/hp300/ramdisk/list
--- a/distrib/hp300/ramdisk/list        Sun Aug 04 01:16:09 2002 +0000
+++ b/distrib/hp300/ramdisk/list        Sun Aug 04 01:21:48 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: list,v 1.6 2002/06/05 11:22:05 lukem Exp $
+#      $NetBSD: list,v 1.7 2002/08/04 01:21:48 gmcgarry Exp $
 
 SRCDIRS        bin sbin usr.bin usr.sbin gnu/usr.bin
 
@@ -36,6 +36,7 @@
 PROG   usr/bin/ftp
 PROG   usr/bin/gzip    usr/bin/gzcat usr/bin/gunzip
 PROG   usr/bin/sed
+PROC   usr/bin/tset
 
 PROG   usr/sbin/chown  usr/bin/chgrp
 PROG   usr/sbin/chroot



Home | Main Index | Thread Index | Old Index