11.4Smartin# $NetBSD: dot.profile,v 1.4 2020/01/09 19:17:40 martin Exp $
21.1Sreinoud#
31.1Sreinoud# Copyright (c) 1997 Perry E. Metzger
41.1Sreinoud# Copyright (c) 1994 Christopher G. Demetriou
51.1Sreinoud# All rights reserved.
61.1Sreinoud# 
71.1Sreinoud# Redistribution and use in source and binary forms, with or without
81.1Sreinoud# modification, are permitted provided that the following conditions
91.1Sreinoud# are met:
101.1Sreinoud# 1. Redistributions of source code must retain the above copyright
111.1Sreinoud#    notice, this list of conditions and the following disclaimer.
121.1Sreinoud# 2. Redistributions in binary form must reproduce the above copyright
131.1Sreinoud#    notice, this list of conditions and the following disclaimer in the
141.1Sreinoud#    documentation and/or other materials provided with the distribution.
151.1Sreinoud# 3. All advertising materials mentioning features or use of this software
161.1Sreinoud#    must display the following acknowledgement:
171.1Sreinoud#          This product includes software developed for the
181.3Ssalo#          NetBSD Project.  See http://www.NetBSD.org/ for
191.1Sreinoud#          information about NetBSD.
201.1Sreinoud# 4. The name of the author may not be used to endorse or promote products
211.1Sreinoud#    derived from this software without specific prior written permission.
221.1Sreinoud# 
231.1Sreinoud# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
241.1Sreinoud# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
251.1Sreinoud# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
261.1Sreinoud# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
271.1Sreinoud# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
281.1Sreinoud# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
291.1Sreinoud# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
301.1Sreinoud# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
311.1Sreinoud# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
321.1Sreinoud# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
331.1Sreinoud# 
341.1Sreinoud# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
351.1Sreinoud
361.1SreinoudPATH=/sbin:/bin:/usr/bin:/usr/sbin:/
371.1Sreinoudexport PATH
381.2SreinoudTERM=vt100
391.1Sreinoudexport TERM
401.1SreinoudHOME=/
411.1Sreinoudexport HOME
421.1Sreinoud
431.1Sreinoudumask 022
441.1Sreinoud
451.1SreinoudROOTDEV=/dev/md0a
461.1Sreinoud
471.1Sreinoudif [ "X${DONEPROFILE}" = "X" ]; then
481.1Sreinoud	DONEPROFILE=YES
491.1Sreinoud	export DONEPROFILE
501.1Sreinoud
511.1Sreinoud	# set up some sane defaults
521.1Sreinoud	echo 'erase ^?, werase ^W, kill ^U, intr ^C'
531.1Sreinoud	stty newcrt werase ^W intr ^C kill ^U erase ^? 9600
541.1Sreinoud	echo ''
551.1Sreinoud
561.1Sreinoud	# mount the ramdisk read write
571.1Sreinoud	mount -u $ROOTDEV /
581.1Sreinoud
591.1Sreinoud	# mount the kern_fs so that we can examine the dmesg state
601.1Sreinoud	mount -t kernfs /kern /kern
611.1Sreinoud
621.1Sreinoud	# run the installation or upgrade script.
631.4Smartin	sysinst || stty sane
641.1Sreinoudfi
65