dot.profile revision 1.1
11.1Soki#	$NetBSD: dot.profile,v 1.1 1997/10/19 15:29:10 oki Exp $
21.1Soki#
31.1Soki# Copyright (c) 1994 Christopher G. Demetriou
41.1Soki# Copyright (c) 1997 Perry E. Metzger
51.1Soki# All rights reserved.
61.1Soki# 
71.1Soki# Redistribution and use in source and binary forms, with or without
81.1Soki# modification, are permitted provided that the following conditions
91.1Soki# are met:
101.1Soki# 1. Redistributions of source code must retain the above copyright
111.1Soki#    notice, this list of conditions and the following disclaimer.
121.1Soki# 2. Redistributions in binary form must reproduce the above copyright
131.1Soki#    notice, this list of conditions and the following disclaimer in the
141.1Soki#    documentation and/or other materials provided with the distribution.
151.1Soki# 3. All advertising materials mentioning features or use of this software
161.1Soki#    must display the following acknowledgement:
171.1Soki#	This product includes software developed by Christopher G. Demetriou.
181.1Soki# 4. The name of the author may not be used to endorse or promote products
191.1Soki#    derived from this software without specific prior written permission
201.1Soki#
211.1Soki# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
221.1Soki# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
231.1Soki# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
241.1Soki# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
251.1Soki# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
261.1Soki# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
271.1Soki# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
281.1Soki# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
291.1Soki# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
301.1Soki# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
311.1Soki#
321.1Soki
331.1SokiPATH=/sbin:/bin:/usr/bin:/usr/sbin:/
341.1Sokiexport PATH
351.1SokiTERM=pc3
361.1Sokiexport TERM
371.1Soki
381.1Sokiumask 022
391.1Soki
401.1SokiROOTDEV=/dev/md0a
411.1Soki
421.1Sokiif [ "X${DONEPROFILE}" = "X" ]; then
431.1Soki	DONEPROFILE=YES
441.1Soki
451.1Soki	# set up some sane defaults
461.1Soki	echo 'erase ^?, werase ^W, kill ^U, intr ^C'
471.1Soki	stty newcrt werase ^W intr ^C kill ^U erase ^? 9600
481.1Soki	echo ''
491.1Soki
501.1Soki	# run update, so that installed software is written as it goes.
511.1Soki	update
521.1Soki
531.1Soki	# mount the ramdisk read write
541.1Soki	mount -u $ROOTDEV /
551.1Soki
561.1Soki	# mount the kern_fs so that we can examine the dmesg state
571.1Soki	mount -t kernfs /kern /kern
581.1Soki
591.1Soki	# pull in the functions that people will use from the shell prompt.
601.1Soki	. /.commonutils
611.1Soki	. /.instutils
621.1Soki
631.1Soki	# run the installation or upgrade script.
641.1Soki	start
651.1Sokifi
66