dot.profile revision 1.9
11.9Smartin# $NetBSD: dot.profile,v 1.9 2020/01/09 19:17:43 martin Exp $ 21.1Sender# 31.7Scgd# Copyright (c) 1997 Perry E. Metzger 41.1Sender# Copyright (c) 1994 Christopher G. Demetriou 51.1Sender# All rights reserved. 61.1Sender# 71.1Sender# Redistribution and use in source and binary forms, with or without 81.1Sender# modification, are permitted provided that the following conditions 91.1Sender# are met: 101.1Sender# 1. Redistributions of source code must retain the above copyright 111.1Sender# notice, this list of conditions and the following disclaimer. 121.1Sender# 2. Redistributions in binary form must reproduce the above copyright 131.1Sender# notice, this list of conditions and the following disclaimer in the 141.1Sender# documentation and/or other materials provided with the distribution. 151.1Sender# 3. All advertising materials mentioning features or use of this software 161.1Sender# must display the following acknowledgement: 171.7Scgd# This product includes software developed for the 181.8Ssalo# NetBSD Project. See http://www.NetBSD.org/ for 191.7Scgd# information about NetBSD. 201.1Sender# 4. The name of the author may not be used to endorse or promote products 211.7Scgd# derived from this software without specific prior written permission. 221.7Scgd# 231.1Sender# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 241.1Sender# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 251.1Sender# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 261.1Sender# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 271.1Sender# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 281.1Sender# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 291.1Sender# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 301.1Sender# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 311.1Sender# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 321.1Sender# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 331.7Scgd# 341.7Scgd# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>> 351.1Sender 361.1SenderPATH=/sbin:/bin:/usr/bin:/usr/sbin:/ 371.1Senderexport PATH 381.1SenderTERM=vt220 391.1Senderexport TERM 401.1SenderHOME=/ 411.1Senderexport HOME 421.1Sender 431.1Senderumask 022 441.1Sender 451.5StsutsuiROOTDEV=/dev/md0a 461.1Sender 471.1Senderif [ "X${DONEPROFILE}" = "X" ]; then 481.1Sender DONEPROFILE=YES 491.2Scgd export DONEPROFILE 501.1Sender 511.1Sender # get the terminal type 521.1Sender eval `tset -s -m ":?$TERM"` 531.1Sender 541.1Sender # set up some sane defaults 551.1Sender echo 'erase ^?, werase ^W, kill ^U, intr ^C' 561.1Sender stty newcrt werase ^W intr ^C kill ^U erase ^? 9600 571.1Sender echo '' 581.1Sender 591.1Sender # mount the ramdisk read write 601.1Sender mount -u $ROOTDEV / 611.1Sender 621.1Sender # mount the kern_fs so that we can examine the dmesg state 631.1Sender mount -t kernfs /kern /kern 641.1Sender 651.1Sender # run the installation program 661.9Smartin sysinst || stty sane 671.1Senderfi 68