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