dot.profile revision 1.2
11.2Ssimonb#	$NetBSD: dot.profile,v 1.2 1999/03/29 07:19:47 simonb Exp $
21.1Sjonathan#
31.1Sjonathan# Copyright (c) 1994 Christopher G. Demetriou
41.1Sjonathan# Copyright (c) 1997 Perry E. Metzger
51.1Sjonathan# All rights reserved.
61.1Sjonathan# 
71.1Sjonathan# Redistribution and use in source and binary forms, with or without
81.1Sjonathan# modification, are permitted provided that the following conditions
91.1Sjonathan# are met:
101.1Sjonathan# 1. Redistributions of source code must retain the above copyright
111.1Sjonathan#    notice, this list of conditions and the following disclaimer.
121.1Sjonathan# 2. Redistributions in binary form must reproduce the above copyright
131.1Sjonathan#    notice, this list of conditions and the following disclaimer in the
141.1Sjonathan#    documentation and/or other materials provided with the distribution.
151.1Sjonathan# 3. All advertising materials mentioning features or use of this software
161.1Sjonathan#    must display the following acknowledgement:
171.1Sjonathan#	This product includes software developed by Christopher G. Demetriou.
181.1Sjonathan# 4. The name of the author may not be used to endorse or promote products
191.1Sjonathan#    derived from this software without specific prior written permission
201.1Sjonathan#
211.1Sjonathan# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
221.1Sjonathan# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
231.1Sjonathan# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
241.1Sjonathan# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
251.1Sjonathan# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
261.1Sjonathan# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
271.1Sjonathan# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
281.1Sjonathan# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
291.1Sjonathan# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
301.1Sjonathan# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
311.1Sjonathan#
321.1Sjonathan
331.1SjonathanPATH=/sbin:/bin:/usr/bin:/usr/sbin:/
341.1Sjonathanexport PATH
351.2SsimonbTERM=rcons
361.1Sjonathanexport TERM
371.1SjonathanHOME=/
381.1Sjonathanexport HOME
391.1Sjonathan
401.1Sjonathanumask 022
411.1Sjonathan
421.1SjonathanROOTDEV=/dev/md0a
431.1Sjonathan
441.1Sjonathanif [ "X${DONEPROFILE}" = "X" ]; then
451.1Sjonathan	DONEPROFILE=YES
461.1Sjonathan
471.1Sjonathan	# get the terminal type
481.1Sjonathan	eval `tset -s -m ":?$TERM"`
491.1Sjonathan
501.1Sjonathan	# set up some sane defaults
511.1Sjonathan	echo 'erase ^?, werase ^W, kill ^U, intr ^C'
521.1Sjonathan	stty newcrt werase ^W intr ^C kill ^U erase ^? 9600
531.1Sjonathan	echo ''
541.1Sjonathan
551.1Sjonathan	# run update, so that installed software is written as it goes.
561.1Sjonathan	update
571.1Sjonathan
581.1Sjonathan	# mount the ramdisk read write
591.1Sjonathan	mount -u $ROOTDEV /
601.1Sjonathan
611.1Sjonathan	# mount the kern_fs so that we can examine the dmesg state
621.1Sjonathan	mount -t kernfs /kern /kern
631.1Sjonathan
641.1Sjonathan	# run the installation program
651.1Sjonathan	sysinst
661.1Sjonathanfi
67