11.8Smartin# $NetBSD: dot.profile,v 1.8 2020/01/09 19:17:42 martin Exp $
21.2Sshin#
31.5Scgd# Copyright (c) 1997 Perry E. Metzger
41.2Sshin# Copyright (c) 1994 Christopher G. Demetriou
51.2Sshin# All rights reserved.
61.2Sshin# 
71.2Sshin# Redistribution and use in source and binary forms, with or without
81.2Sshin# modification, are permitted provided that the following conditions
91.2Sshin# are met:
101.2Sshin# 1. Redistributions of source code must retain the above copyright
111.2Sshin#    notice, this list of conditions and the following disclaimer.
121.2Sshin# 2. Redistributions in binary form must reproduce the above copyright
131.2Sshin#    notice, this list of conditions and the following disclaimer in the
141.2Sshin#    documentation and/or other materials provided with the distribution.
151.2Sshin# 3. All advertising materials mentioning features or use of this software
161.2Sshin#    must display the following acknowledgement:
171.5Scgd#          This product includes software developed for the
181.6Ssalo#          NetBSD Project.  See http://www.NetBSD.org/ for
191.5Scgd#          information about NetBSD.
201.2Sshin# 4. The name of the author may not be used to endorse or promote products
211.5Scgd#    derived from this software without specific prior written permission.
221.5Scgd# 
231.2Sshin# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
241.2Sshin# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
251.2Sshin# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
261.2Sshin# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
271.2Sshin# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
281.2Sshin# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
291.2Sshin# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
301.2Sshin# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
311.2Sshin# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
321.2Sshin# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
331.5Scgd# 
341.5Scgd# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
351.2Sshin
361.1StakemuraPATH=/sbin:/bin:/usr/bin:/usr/sbin:/
371.1Stakemuraexport PATH
381.2SshinTERM=vt100
391.2Sshinexport TERM
401.2SshinHOME=/
411.2Sshinexport HOME
421.2SshinBLOCKSIZE=1k
431.2Sshinexport BLOCKSIZE
441.2SshinEDITOR=ed
451.2Sshinexport EDITOR
461.2Sshin
471.2Sshinumask 022
481.2Sshin
491.3StsutsuiROOTDEV=/dev/md0a
501.2Sshin
511.2Sshinif [ "X${DONEPROFILE}" = "X" ]; then
521.2Sshin	DONEPROFILE=YES
531.2Sshin	export DONEPROFILE
541.2Sshin
551.2Sshin	# set up some sane defaults
561.2Sshin	echo 'erase ^?, werase ^W, kill ^U, intr ^C'
571.2Sshin	stty newcrt werase ^W intr ^C kill ^U erase ^? 9600
581.2Sshin	echo ''
591.2Sshin
601.2Sshin	# mount the ramdisk read write
611.2Sshin	mount -u $ROOTDEV /
621.2Sshin
631.2Sshin	# pull in the functions that people will use from the shell prompt.
641.2Sshin	# . /.commonutils
651.2Sshin	# . /.instutils
661.2Sshin	grep() sed -n "/$1/p"
671.1Stakemura
681.2Sshin	# run the installation or upgrade script.
691.8Smartin	sysinst || stty sane
701.2Sshinfi
71