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