dot.profile revision 1.1
11.1Sragge# $NetBSD: dot.profile,v 1.1 1999/03/12 18:36:52 ragge Exp $ 21.1Sragge# 31.1Sragge# Copyright (c) 1994 Christopher G. Demetriou 41.1Sragge# Copyright (c) 1997 Perry E. Metzger 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.1Sragge# This product includes software developed by Christopher G. Demetriou. 181.1Sragge# 4. The name of the author may not be used to endorse or promote products 191.1Sragge# derived from this software without specific prior written permission 201.1Sragge# 211.1Sragge# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 221.1Sragge# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 231.1Sragge# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 241.1Sragge# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 251.1Sragge# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 261.1Sragge# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 271.1Sragge# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 281.1Sragge# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 291.1Sragge# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 301.1Sragge# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 311.1Sragge# 321.1Sragge 331.1SraggePATH=/sbin:/bin:/usr/bin:/usr/sbin:/ 341.1Sraggeexport PATH 351.1SraggeTERM=vt100 361.1Sraggeexport TERM 371.1SraggeHOME=/ 381.1Sraggeexport HOME 391.1Sragge 401.1Sraggeumask 022 411.1Sragge 421.1SraggeROOTDEV=/dev/md0a 431.1Sragge 441.1Sraggeif [ "X${DONEPROFILE}" = "X" ]; then 451.1Sragge DONEPROFILE=YES 461.1Sragge 471.1Sragge # set up some sane defaults 481.1Sragge echo 'erase ^?, werase ^W, kill ^U, intr ^C' 491.1Sragge stty newcrt werase ^W intr ^C kill ^U erase ^? 9600 501.1Sragge echo '' 511.1Sragge 521.1Sragge # run update, so that installed software is written as it goes. 531.1Sragge update 541.1Sragge 551.1Sragge # mount the ramdisk read write 561.1Sragge mount -u $ROOTDEV / 571.1Sragge 581.1Sragge # mount the kern_fs so that we can examine the dmesg state 591.1Sragge mount -t kernfs /kern /kern 601.1Sragge 611.1Sragge # pull in the functions that people will use from the shell prompt. 621.1Sragge # . /.commonutils 631.1Sragge # . /.instutils 641.1Sragge 651.1Sragge # run the installation or upgrade script. 661.1Sragge sysinst 671.1Sraggefi 68