dot.profile revision 1.1
11.1Shubertf# $NetBSD: dot.profile,v 1.1 2006/06/02 22:11:52 hubertf 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.1ShubertfHOME=/ 401.1Shubertfexport HOME 411.1ShubertfBLOCKSIZE=1k 421.1Shubertfexport BLOCKSIZE 431.1ShubertfEDITOR=ed 441.1Shubertfexport EDITOR 451.1Shubertfexport TERM 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.1Shubertf echo '' 591.1Shubertf 601.1Shubertf # mount the ramdisk read write 611.1Shubertf mount -u $ROOTDEV / 621.1Shubertf 631.1Shubertf # mount the kern_fs so that we can examine the dmesg state 641.1Shubertf mount -t kernfs /kern /kern 651.1Shubertf 661.1Shubertf # pull in the functions that people will use from the shell prompt. 671.1Shubertf # . /.commonutils 681.1Shubertf # . /.instutils 691.1Shubertf dmesg() cat /kern/msgbuf 701.1Shubertf grep() sed -n "/$1/p" 711.1Shubertf 721.1Shubertf if [ -x /sysinst ]; then 731.1Shubertf # run the installation or upgrade script. 741.1Shubertf sysinst 751.1Shubertf else 761.1Shubertf echo "This image contains utilities which may be needed" 771.1Shubertf echo "to get you out of a pinch." 781.1Shubertf fi 791.1Shubertffi 80