summaryrefslogtreecommitdiff
path: root/distrib/sun3/install.md
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/sun3/install.md')
-rw-r--r--distrib/sun3/install.md48
1 files changed, 5 insertions, 43 deletions
diff --git a/distrib/sun3/install.md b/distrib/sun3/install.md
index eacc2d89fd4..778274e1314 100644
--- a/distrib/sun3/install.md
+++ b/distrib/sun3/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.1 2000/06/20 21:29:03 miod Exp $
+# $OpenBSD: install.md,v 1.2 2001/06/23 19:44:59 deraadt Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -41,22 +41,8 @@
#
# Machine-dependent install sets
-MSGBUF=/kern/msgbuf
-HOSTNAME=/kern/hostname
MDSETS="kernel"
-
-# an alias for hostname(1)
-hostname() {
- if [ -x /bin/hostname ]; then
- /bin/hostname $1
- else
- if [ -z "$1" ]; then
- cat $HOSTNAME
- else
- echo $1 > $HOSTNAME
- fi
- fi
-}
+ARCH=ARCH
md_set_term() {
test -n "$TERM" && return
@@ -66,30 +52,10 @@ md_set_term() {
export TERM
}
-md_makerootwritable() {
- # Was: do_mfs_mount "/tmp" "2048"
- # /tmp is the mount point
- # 2048 is the size in DEV_BIZE blocks
-
- if [ ! -w /tmp ]; then
- umount /tmp > /dev/null 2>&1
- if ! mount_mfs -s 2048 swap /tmp ; then
- cat << __EOT
-
-FATAL ERROR: Can't mount the memory filesystem.
-
-__EOT
- exit
- fi
-
- # Bleh. Give mount_mfs a chance to DTRT.
- sleep 2
- fi
-}
-
md_get_msgbuf() {
- # Only want to see one boot's worth of info
- sed -n -f /dev/stdin $MSGBUF <<- OOF
+ # Only want to see one boot's worth of info
+ dmesg > /tmp/msgbuf
+ sed -n -f /dev/stdin /tmp/msgbuf <<- OOF
/^OpenBSD /h
/^OpenBSD /!H
\${
@@ -99,10 +65,6 @@ md_get_msgbuf() {
OOF
}
-md_machine_arch() {
- cat /kern/machine
-}
-
md_get_diskdevs() {
# return available disk devices
md_get_msgbuf | sed -n -e '/^sd[0-9] /{s/ .*//;p;}' \