dot.profile revision 1.3
11.3Stsutsui# $NetBSD: dot.profile,v 1.3 2000/01/21 12:32:58 tsutsui Exp $ 21.2Sshin# 31.2Sshin# Copyright (c) 1994 Christopher G. Demetriou 41.2Sshin# Copyright (c) 1997 Perry E. Metzger 51.2Sshin# All rights reserved. 61.2Sshin# 71.2Sshin# Redistribution and use in source and binary forms, with or without 81.2Sshin# modification, are permitted provided that the following conditions 91.2Sshin# are met: 101.2Sshin# 1. Redistributions of source code must retain the above copyright 111.2Sshin# notice, this list of conditions and the following disclaimer. 121.2Sshin# 2. Redistributions in binary form must reproduce the above copyright 131.2Sshin# notice, this list of conditions and the following disclaimer in the 141.2Sshin# documentation and/or other materials provided with the distribution. 151.2Sshin# 3. All advertising materials mentioning features or use of this software 161.2Sshin# must display the following acknowledgement: 171.2Sshin# This product includes software developed by Christopher G. Demetriou. 181.2Sshin# 4. The name of the author may not be used to endorse or promote products 191.2Sshin# derived from this software without specific prior written permission 201.2Sshin# 211.2Sshin# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 221.2Sshin# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 231.2Sshin# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 241.2Sshin# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 251.2Sshin# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 261.2Sshin# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 271.2Sshin# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 281.2Sshin# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 291.2Sshin# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 301.2Sshin# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 311.2Sshin# 321.2Sshin 331.1StakemuraPATH=/sbin:/bin:/usr/bin:/usr/sbin:/ 341.1Stakemuraexport PATH 351.2SshinTERM=vt100 361.2Sshinexport TERM 371.2SshinHOME=/ 381.2Sshinexport HOME 391.2SshinBLOCKSIZE=1k 401.2Sshinexport BLOCKSIZE 411.2SshinEDITOR=ed 421.2Sshinexport EDITOR 431.2Sshin 441.2Sshinumask 022 451.2Sshin 461.3StsutsuiROOTDEV=/dev/md0a 471.2Sshin 481.2Sshinif [ "X${DONEPROFILE}" = "X" ]; then 491.2Sshin DONEPROFILE=YES 501.2Sshin export DONEPROFILE 511.2Sshin 521.2Sshin # set up some sane defaults 531.2Sshin echo 'erase ^?, werase ^W, kill ^U, intr ^C' 541.2Sshin stty newcrt werase ^W intr ^C kill ^U erase ^? 9600 551.2Sshin echo '' 561.2Sshin 571.2Sshin # mount the ramdisk read write 581.2Sshin mount -u $ROOTDEV / 591.2Sshin 601.2Sshin # mount the kern_fs so that we can examine the dmesg state 611.2Sshin mount -t kernfs /kern /kern 621.1Stakemura 631.2Sshin # pull in the functions that people will use from the shell prompt. 641.2Sshin # . /.commonutils 651.2Sshin # . /.instutils 661.2Sshin dmesg() cat /kern/msgbuf 671.2Sshin grep() sed -n "/$1/p" 681.1Stakemura 691.2Sshin # run the installation or upgrade script. 701.1Stakemura sysinst 711.2Sshinfi 72