dot.profile revision 1.2
11.2Smartin# $NetBSD: dot.profile,v 1.2 2020/01/09 19:17:44 martin Exp $ 21.1Stsutsui# 31.1Stsutsui# Copyright (c) 1997 Perry E. Metzger 41.1Stsutsui# Copyright (c) 1994 Christopher G. Demetriou 51.1Stsutsui# All rights reserved. 61.1Stsutsui# 71.1Stsutsui# Redistribution and use in source and binary forms, with or without 81.1Stsutsui# modification, are permitted provided that the following conditions 91.1Stsutsui# are met: 101.1Stsutsui# 1. Redistributions of source code must retain the above copyright 111.1Stsutsui# notice, this list of conditions and the following disclaimer. 121.1Stsutsui# 2. Redistributions in binary form must reproduce the above copyright 131.1Stsutsui# notice, this list of conditions and the following disclaimer in the 141.1Stsutsui# documentation and/or other materials provided with the distribution. 151.1Stsutsui# 3. All advertising materials mentioning features or use of this software 161.1Stsutsui# must display the following acknowledgement: 171.1Stsutsui# This product includes software developed for the 181.1Stsutsui# NetBSD Project. See http://www.NetBSD.org/ for 191.1Stsutsui# information about NetBSD. 201.1Stsutsui# 4. The name of the author may not be used to endorse or promote products 211.1Stsutsui# derived from this software without specific prior written permission. 221.1Stsutsui# 231.1Stsutsui# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 241.1Stsutsui# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 251.1Stsutsui# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 261.1Stsutsui# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 271.1Stsutsui# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 281.1Stsutsui# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 291.1Stsutsui# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 301.1Stsutsui# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 311.1Stsutsui# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 321.1Stsutsui# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 331.1Stsutsui# 341.1Stsutsui# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>> 351.1Stsutsui 361.1StsutsuiPATH=/sbin:/bin:/usr/bin:/usr/sbin:/ 371.1Stsutsuiexport PATH 381.1StsutsuiTERM=vt100 391.1Stsutsuiexport TERM 401.1StsutsuiHOME=/ 411.1Stsutsuiexport HOME 421.1StsutsuiBLOCKSIZE=1k 431.1Stsutsuiexport BLOCKSIZE 441.1StsutsuiEDITOR=ed 451.1Stsutsuiexport EDITOR 461.1Stsutsui 471.1Stsutsuiumask 022 481.1Stsutsui 491.1StsutsuiROOTDEV=/dev/md0a 501.1Stsutsui 511.1Stsutsuiif [ "X${DONEPROFILE}" = "X" ]; then 521.1Stsutsui DONEPROFILE=YES 531.1Stsutsui export DONEPROFILE 541.1Stsutsui 551.1Stsutsui # set up some sane defaults 561.1Stsutsui echo 'erase ^?, werase ^W, kill ^U, intr ^C, status ^T' 571.1Stsutsui stty newcrt werase ^W intr ^C kill ^U erase ^? status ^T 9600 581.1Stsutsui echo '' 591.1Stsutsui 601.1Stsutsui # mount the ramdisk read write 611.1Stsutsui mount -u $ROOTDEV / 621.1Stsutsui 631.1Stsutsui # pull in the functions that people will use from the shell prompt. 641.1Stsutsui # . /.commonutils 651.1Stsutsui # . /.instutils 661.1Stsutsui grep() sed -n "/$1/p" 671.1Stsutsui 681.1Stsutsui # run the installation or upgrade script. 691.1Stsutsui if [ -x /sysinst ]; then 701.1Stsutsui # run the installation or upgrade script. 711.2Smartin sysinst || stty sane 721.1Stsutsui else 731.1Stsutsui echo "This image contains utilities which may be needed" 741.1Stsutsui echo "to get you out of a pinch." 751.1Stsutsui fi 761.1Stsutsuifi 77