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