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