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