Merge the netbsd-1-2 branch into the mainline.

This commit is contained in:
leo 1996-10-11 20:30:33 +00:00
parent 7e0782662e
commit 67384150c2
1 changed files with 35 additions and 24 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: install.md,v 1.7 1996/08/26 02:34:37 thorpej Exp $
# $NetBSD: install.md,v 1.8 1996/10/11 20:30:33 leo Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -43,18 +43,6 @@
# Machine-dependent install sets
MDSETS=""
__mount_kernfs() {
#
# Mount root rw for convenience of the tester ;-)
# Force kern_fs to be mounted
#
if [ ! -d /kern -o ! -e /kern/msgbuf ]; then
mount /dev/rd0 / > /dev/null 2>&1
mkdir /kern > /dev/null 2>&1
/sbin/mount_kernfs /kern /kern >/dev/null 2>&1
fi
}
md_set_term() {
if [ ! -z "$TERM" ]; then
return
@ -65,27 +53,50 @@ md_set_term() {
export TERM
}
__mount_kernfs() {
#
# Force kern_fs to be mounted
#
if [ ! -d /kern -o ! -e /kern/msgbuf ]; then
mkdir /kern > /dev/null 2>&1
/sbin/mount_kernfs /kern /kern >/dev/null 2>&1
fi
}
md_makerootwritable() {
# Mount root rw for convenience of the tester ;-)
if [ ! -e /tmp/.root_writable ]; then
__mount_kernfs
# XXX: Use /kern/rootdev instead?
mount /dev/rd0 / > /dev/null 2>&1
cp /dev/null /tmp/.root_writable
fi
}
md_get_diskdevs() {
# return available disk devices
__mount_kernfs
sed -e '/^sd[0-9] /!d' -e 's/^\(sd[0-9]\) .*/\1/' < /kern/msgbuf | sort -u
# return available disk devices
__mount_kernfs
sed -n -e '/^sd[0-9] /s/ .*//p' \
< /kern/msgbuf | sort -u
}
md_get_cddevs() {
# return available CDROM devices
__mount_kernfs
sed -e '/^cd[0-9] /!d' -e 's/^\(cd[0-9]\) .*/\1/' < /kern/msgbuf | sort -u
# return available CDROM devices
__mount_kernfs
sed -n -e '/^cd[0-9] /s/ .*//p' \
< /kern/msgbuf | sort -u
}
md_get_ifdevs() {
# return available network devices
__mount_kernfs
sed -e '/^[li]e[0-9] /!d' -e 's/^\([li]e[0-9]\) .*/\1/' < /kern/msgbuf |
sort -u
# return available network devices
__mount_kernfs
sed -n -e '/^ie[0-9] /s/ .*//p' \
-e '/^le[0-9] /s/ .*//p' \
< /kern/msgbuf | sort -u
}
md_get_partition_range() {
# return an expression describing the valid partition id's on the Atari
# return an expression describing the valid partition id's
echo '[a-p]'
}