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