dot.profile revision 1.3.2.2 1 1.3.2.2 cgd # $NetBSD: dot.profile,v 1.3.2.2 1999/01/25 06:19:52 cgd Exp $
2 1.3.2.2 cgd #
3 1.3.2.2 cgd # Copyright (c) 1995 Jason R. Thorpe
4 1.3.2.2 cgd # Copyright (c) 1994 Christopher G. Demetriou
5 1.3.2.2 cgd # All rights reserved.
6 1.3.2.2 cgd #
7 1.3.2.2 cgd # Redistribution and use in source and binary forms, with or without
8 1.3.2.2 cgd # modification, are permitted provided that the following conditions
9 1.3.2.2 cgd # are met:
10 1.3.2.2 cgd # 1. Redistributions of source code must retain the above copyright
11 1.3.2.2 cgd # notice, this list of conditions and the following disclaimer.
12 1.3.2.2 cgd # 2. Redistributions in binary form must reproduce the above copyright
13 1.3.2.2 cgd # notice, this list of conditions and the following disclaimer in the
14 1.3.2.2 cgd # documentation and/or other materials provided with the distribution.
15 1.3.2.2 cgd # 3. All advertising materials mentioning features or use of this software
16 1.3.2.2 cgd # must display the following acknowledgement:
17 1.3.2.2 cgd # This product includes software developed by Christopher G. Demetriou.
18 1.3.2.2 cgd # 4. The name of the author may not be used to endorse or promote products
19 1.3.2.2 cgd # derived from this software without specific prior written permission
20 1.3.2.2 cgd #
21 1.3.2.2 cgd # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 1.3.2.2 cgd # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 1.3.2.2 cgd # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 1.3.2.2 cgd # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25 1.3.2.2 cgd # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26 1.3.2.2 cgd # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 1.3.2.2 cgd # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 1.3.2.2 cgd # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 1.3.2.2 cgd # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 1.3.2.2 cgd # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 1.3.2.2 cgd #
32 1.3.2.2 cgd
33 1.3.2.2 cgd PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
34 1.3.2.2 cgd export PATH
35 1.3.2.2 cgd TERM=sun
36 1.3.2.2 cgd export TERM
37 1.3.2.2 cgd HOME=/
38 1.3.2.2 cgd export HOME
39 1.3.2.2 cgd
40 1.3.2.2 cgd umask 022
41 1.3.2.2 cgd
42 1.3.2.2 cgd if [ "X${DONEPROFILE}" = "X" ]; then
43 1.3.2.2 cgd DONEPROFILE=YES
44 1.3.2.2 cgd
45 1.3.2.2 cgd # set up some sane defaults
46 1.3.2.2 cgd echo 'erase ^H, werase ^W, kill ^U, intr ^C, status ^T'
47 1.3.2.2 cgd stty newcrt werase ^W intr ^C kill ^U erase ^H status ^T 9600
48 1.3.2.2 cgd
49 1.3.2.2 cgd # mount root read-write
50 1.3.2.2 cgd mount -u /dev/md0a /
51 1.3.2.2 cgd
52 1.3.2.2 cgd # mount a /tmp on mfs, to avoid filling the md
53 1.3.2.2 cgd mount -t mfs swap /tmp
54 1.3.2.2 cgd
55 1.3.2.2 cgd # run update, so that installed software is written as it goes.
56 1.3.2.2 cgd update
57 1.3.2.2 cgd
58 1.3.2.2 cgd # Installing or upgrading?
59 1.3.2.2 cgd _forceloop=""
60 1.3.2.2 cgd while [ "X${_forceloop}" = X"" ]; do
61 1.3.2.2 cgd echo -n '(I)nstall, (U)pgrade, (H)alt or (S)hell ? '
62 1.3.2.2 cgd read _forceloop
63 1.3.2.2 cgd case "$_forceloop" in
64 1.3.2.2 cgd i*|I*)
65 1.3.2.2 cgd /install
66 1.3.2.2 cgd ;;
67 1.3.2.2 cgd
68 1.3.2.2 cgd u*|U*)
69 1.3.2.2 cgd /upgrade
70 1.3.2.2 cgd ;;
71 1.3.2.2 cgd
72 1.3.2.2 cgd h*|H*)
73 1.3.2.2 cgd /sbin/halt
74 1.3.2.2 cgd ;;
75 1.3.2.2 cgd
76 1.3.2.2 cgd s*|S*)
77 1.3.2.2 cgd /bin/sh
78 1.3.2.2 cgd ;;
79 1.3.2.2 cgd
80 1.3.2.2 cgd *)
81 1.3.2.2 cgd _forceloop=""
82 1.3.2.2 cgd ;;
83 1.3.2.2 cgd esac
84 1.3.2.2 cgd done
85 1.3.2.2 cgd fi
86