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