dot.profile revision 1.2
11.2Sperry# $NetBSD: dot.profile,v 1.2 1998/01/09 21:52:02 perry Exp $ 21.1Soki# 31.1Soki# Copyright (c) 1994 Christopher G. Demetriou 41.1Soki# Copyright (c) 1997 Perry E. Metzger 51.1Soki# All rights reserved. 61.1Soki# 71.1Soki# Redistribution and use in source and binary forms, with or without 81.1Soki# modification, are permitted provided that the following conditions 91.1Soki# are met: 101.1Soki# 1. Redistributions of source code must retain the above copyright 111.1Soki# notice, this list of conditions and the following disclaimer. 121.1Soki# 2. Redistributions in binary form must reproduce the above copyright 131.1Soki# notice, this list of conditions and the following disclaimer in the 141.1Soki# documentation and/or other materials provided with the distribution. 151.1Soki# 3. All advertising materials mentioning features or use of this software 161.1Soki# must display the following acknowledgement: 171.1Soki# This product includes software developed by Christopher G. Demetriou. 181.1Soki# 4. The name of the author may not be used to endorse or promote products 191.1Soki# derived from this software without specific prior written permission 201.1Soki# 211.1Soki# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 221.1Soki# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 231.1Soki# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 241.1Soki# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 251.1Soki# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 261.1Soki# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 271.1Soki# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 281.1Soki# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 291.1Soki# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 301.1Soki# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 311.1Soki# 321.1Soki 331.1SokiPATH=/sbin:/bin:/usr/bin:/usr/sbin:/ 341.1Sokiexport PATH 351.1SokiTERM=pc3 361.1Sokiexport TERM 371.2SperryHOME=/ 381.2Sperryexport HOME 391.1Soki 401.1Sokiumask 022 411.1Soki 421.1SokiROOTDEV=/dev/md0a 431.1Soki 441.1Sokiif [ "X${DONEPROFILE}" = "X" ]; then 451.1Soki DONEPROFILE=YES 461.1Soki 471.1Soki # set up some sane defaults 481.1Soki echo 'erase ^?, werase ^W, kill ^U, intr ^C' 491.1Soki stty newcrt werase ^W intr ^C kill ^U erase ^? 9600 501.1Soki echo '' 511.1Soki 521.1Soki # run update, so that installed software is written as it goes. 531.1Soki update 541.1Soki 551.1Soki # mount the ramdisk read write 561.1Soki mount -u $ROOTDEV / 571.1Soki 581.1Soki # mount the kern_fs so that we can examine the dmesg state 591.1Soki mount -t kernfs /kern /kern 601.1Soki 611.1Soki # pull in the functions that people will use from the shell prompt. 621.1Soki . /.commonutils 631.1Soki . /.instutils 641.1Soki 651.1Soki # run the installation or upgrade script. 661.1Soki start 671.1Sokifi 68