1*7908a815Stsutsui# $NetBSD: dot.profile,v 1.8 2011/02/06 18:26:51 tsutsui Exp $ 2f965d026Sthorpej# 3f965d026Sthorpej# Copyright (c) 1995 Jason R. Thorpe 4f965d026Sthorpej# Copyright (c) 1994 Christopher G. Demetriou 5f965d026Sthorpej# All rights reserved. 6f965d026Sthorpej# 7f965d026Sthorpej# Redistribution and use in source and binary forms, with or without 8f965d026Sthorpej# modification, are permitted provided that the following conditions 9f965d026Sthorpej# are met: 10f965d026Sthorpej# 1. Redistributions of source code must retain the above copyright 11f965d026Sthorpej# notice, this list of conditions and the following disclaimer. 12f965d026Sthorpej# 2. Redistributions in binary form must reproduce the above copyright 13f965d026Sthorpej# notice, this list of conditions and the following disclaimer in the 14f965d026Sthorpej# documentation and/or other materials provided with the distribution. 15f965d026Sthorpej# 3. All advertising materials mentioning features or use of this software 16f965d026Sthorpej# must display the following acknowledgement: 17c85d2eb4Scgd# This product includes software developed for the 188d1781e3Ssalo# NetBSD Project. See http://www.NetBSD.org/ for 19c85d2eb4Scgd# information about NetBSD. 20f965d026Sthorpej# 4. The name of the author may not be used to endorse or promote products 21c85d2eb4Scgd# derived from this software without specific prior written permission. 22f965d026Sthorpej# 23f965d026Sthorpej# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 24f965d026Sthorpej# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 25f965d026Sthorpej# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 26f965d026Sthorpej# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 27f965d026Sthorpej# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 28f965d026Sthorpej# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29f965d026Sthorpej# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30f965d026Sthorpej# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31f965d026Sthorpej# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 32f965d026Sthorpej# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33c85d2eb4Scgd# 34c85d2eb4Scgd# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>> 35f965d026Sthorpej 36f965d026SthorpejPATH=/sbin:/bin:/usr/bin:/usr/sbin:/ 37f965d026Sthorpejexport PATH 38*7908a815StsutsuiTERM=vt100 39f965d026Sthorpejexport TERM 403891a64dSperryHOME=/ 413891a64dSperryexport HOME 42f965d026Sthorpej 43f965d026Sthorpejumask 022 44f965d026Sthorpej 45f965d026Sthorpejif [ "X${DONEPROFILE}" = "X" ]; then 46f965d026Sthorpej DONEPROFILE=YES 477aa73e55Scgd export DONEPROFILE 48f965d026Sthorpej 49f965d026Sthorpej # set up some sane defaults 50f965d026Sthorpej echo 'erase ^H, werase ^W, kill ^U, intr ^C' 51f965d026Sthorpej stty newcrt werase ^W intr ^C kill ^U erase ^H 9600 52f965d026Sthorpej 53f965d026Sthorpej # get the terminal type 54f965d026Sthorpej _forceloop="" 55f965d026Sthorpej while [ "X${_forceloop}" = X"" ]; do 56f965d026Sthorpej eval `tset -s -m ":?$TERM"` 57f965d026Sthorpej if [ "X${TERM}" != X"unknown" ]; then 58f965d026Sthorpej _forceloop="done" 59f965d026Sthorpej fi 60f965d026Sthorpej done 61f965d026Sthorpej 62f965d026Sthorpej # Installing or upgrading? 63f965d026Sthorpej _forceloop="" 64f965d026Sthorpej while [ "X${_forceloop}" = X"" ]; do 65f965d026Sthorpej echo -n '(I)nstall or (U)pgrade? ' 66f965d026Sthorpej read _forceloop 67f965d026Sthorpej case "$_forceloop" in 68f965d026Sthorpej i*|I*) 69f965d026Sthorpej /install 70f965d026Sthorpej ;; 71f965d026Sthorpej 72f965d026Sthorpej u*|U*) 73f965d026Sthorpej /upgrade 74f965d026Sthorpej ;; 75f965d026Sthorpej 76f965d026Sthorpej *) 77f965d026Sthorpej _forceloop="" 78f965d026Sthorpej ;; 79f965d026Sthorpej esac 80f965d026Sthorpej done 81f965d026Sthorpejfi 82