dot.profile revision 1.13
11.13Slukem# $NetBSD: dot.profile,v 1.13 2002/05/13 01:04:23 lukem Exp $ 21.1Soki# 31.10Scgd# Copyright (c) 1997 Perry E. Metzger 41.1Soki# Copyright (c) 1994 Christopher G. Demetriou 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.10Scgd# This product includes software developed for the 181.10Scgd# NetBSD Project. See http://www.netbsd.org/ for 191.10Scgd# information about NetBSD. 201.1Soki# 4. The name of the author may not be used to endorse or promote products 211.10Scgd# derived from this software without specific prior written permission. 221.10Scgd# 231.1Soki# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 241.1Soki# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 251.1Soki# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 261.1Soki# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 271.1Soki# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 281.1Soki# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 291.1Soki# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 301.1Soki# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 311.1Soki# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 321.1Soki# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 331.10Scgd# 341.10Scgd# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>> 351.1Soki 361.1SokiPATH=/sbin:/bin:/usr/bin:/usr/sbin:/ 371.1Sokiexport PATH 381.3SminouraTERM=x68k 391.1Sokiexport TERM 401.2SperryHOME=/ 411.2Sperryexport HOME 421.13SlukemBLOCKSIZE=1k 431.13Slukemexport BLOCKSIZE 441.13SlukemEDITOR=ed 451.13Slukemexport EDITOR 461.1Soki 471.1Sokiumask 022 481.1Soki 491.13SlukemROOTDEVS="/dev/md0a /dev/fd0c /dev/fd1c /dev/fd2c /Dummy" 501.1Soki 511.1Sokiif [ "X${DONEPROFILE}" = "X" ]; then 521.1Soki DONEPROFILE=YES 531.5Scgd export DONEPROFILE 541.1Soki 551.1Soki # set up some sane defaults 561.1Soki echo 'erase ^?, werase ^W, kill ^U, intr ^C' 571.1Soki stty newcrt werase ^W intr ^C kill ^U erase ^? 9600 581.1Soki echo '' 591.1Soki 601.13Slukem # mount the miniroot read write 611.13Slukem # our miniroot can be either on ramdisk or on floppy. 621.13Slukem for ROOTDEV in $ROOTDEVS; do 631.13Slukem ( mount -u $ROOTDEV / > /dev/null 2>&1 ) && break 641.13Slukem done 651.1Soki 661.1Soki # pull in the functions that people will use from the shell prompt. 671.13Slukem # . /.commonutils 681.13Slukem # . /.instutils 691.1Soki 701.13Slukem if [ "$ROOTDEV" = "/Dummy" ]; then 711.13Slukem echo "Could not determine root device." 721.13Slukem else 731.13Slukem # run sysinst. 741.13Slukem sysinst 751.13Slukem fi 761.1Sokifi 77