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