11.2Skeihan# $NetBSD: dot.profile,v 1.2 2003/12/04 23:24:16 keihan Exp $
21.1Smatt#
31.1Smatt# Copyright (c) 2003 John Gordon
41.1Smatt# Copyright (c) 1995 Jason R. Thorpe
51.1Smatt# Copyright (c) 1994 Christopher G. Demetriou
61.1Smatt# All rights reserved.
71.1Smatt# 
81.1Smatt# Redistribution and use in source and binary forms, with or without
91.1Smatt# modification, are permitted provided that the following conditions
101.1Smatt# are met:
111.1Smatt# 1. Redistributions of source code must retain the above copyright
121.1Smatt#    notice, this list of conditions and the following disclaimer.
131.1Smatt# 2. Redistributions in binary form must reproduce the above copyright
141.1Smatt#    notice, this list of conditions and the following disclaimer in the
151.1Smatt#    documentation and/or other materials provided with the distribution.
161.1Smatt# 3. All advertising materials mentioning features or use of this software
171.1Smatt#    must display the following acknowledgement:
181.1Smatt#          This product includes software developed for the
191.2Skeihan#          NetBSD Project.  See http://www.NetBSD.org/ for
201.1Smatt#          information about NetBSD.
211.1Smatt# 4. The name of the author may not be used to endorse or promote products
221.1Smatt#    derived from this software without specific prior written permission.
231.1Smatt# 
241.1Smatt# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
251.1Smatt# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
261.1Smatt# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
271.1Smatt# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
281.1Smatt# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
291.1Smatt# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
301.1Smatt# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
311.1Smatt# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
321.1Smatt# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
331.1Smatt# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
341.1Smatt# 
351.1Smatt# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
361.1Smatt
371.1SmattPATH=/sbin:/bin:/usr/bin:/usr/sbin:/
381.1Smattexport PATH
391.1SmattTERM=vt100
401.1Smattexport TERM
411.1SmattHOME=/
421.1Smattexport HOME
431.1Smatt
441.1Smattumask 022
451.1Smatt
461.1Smattif [ "X${DONEPROFILE}" = "X" ]; then
471.1Smatt	DONEPROFILE=YES
481.1Smatt	export DONEPROFILE
491.1Smatt
501.1Smatt	# set up some sane defaults
511.1Smatt	echo 'erase ^H, werase ^W, kill ^U, intr ^C, status ^T'
521.1Smatt	stty newcrt werase ^W intr ^C kill ^U erase ^H status ^T 9600
531.1Smatt
541.1Smatt	# mount root read-write
551.1Smatt	mount -u /dev/md0a /
561.1Smatt
571.1Smatt	# mount a /tmp on mfs, to avoid filling the md
581.1Smatt	mount -t mfs swap /tmp
591.1Smatt
601.1Smatt	# get the terminal type
611.1Smatt	_forceloop=""
621.1Smatt	while [ "X${_forceloop}" = X"" ]; do
631.1Smatt		eval `tset -s -m ":?$TERM"`
641.1Smatt		if [ "X${TERM}" != X"unknown" ]; then
651.1Smatt			_forceloop="done"
661.1Smatt		fi
671.1Smatt	done
681.1Smattfi
69