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