summaryrefslogtreecommitdiff
path: root/distrib/alpha/ramdisk
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/alpha/ramdisk')
-rw-r--r--distrib/alpha/ramdisk/install.md29
-rw-r--r--distrib/alpha/ramdisk/raminst.conf10
2 files changed, 31 insertions, 8 deletions
diff --git a/distrib/alpha/ramdisk/install.md b/distrib/alpha/ramdisk/install.md
index b51e6dc2547..4c5bbae978e 100644
--- a/distrib/alpha/ramdisk/install.md
+++ b/distrib/alpha/ramdisk/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.3 1997/05/09 02:25:08 millert Exp $
+# $OpenBSD: install.md,v 1.4 1997/05/09 17:59:37 millert Exp $
# Copyright (c) 1996 The NetBSD Foundation, Inc.
# All rights reserved.
#
@@ -78,7 +78,7 @@ md_get_cddevs() {
md_get_ifdevs() {
# return available network devices
- md_get_msgbuf | egrep "(^ed[0-9] |^[dl]e[0-9] )" | cut -d" " -f1 | sort -u
+ md_get_msgbuf | egrep "(^ed[0-9] |^[dl]e[0-9] )" | sed -e 's/^ *//' -e 's/ .*//'
}
md_get_partition_range() {
@@ -87,7 +87,22 @@ md_get_partition_range() {
}
md_installboot() {
- echo "This must be done later by hand"
+ local _rawdev
+
+ _rawdev=/dev/r${1}c
+
+ # use extracted mdec if it exists (may be newer)
+ if [ -d /mnt/usr/mdec ]; then
+ cp /mnt/usr/mdec/boot /mnt/boot
+ sync
+ /mnt/usr/mdec/installboot -v /mnt/boot /mnt/usr/mdec/bootxx $_rawdev
+ elif [ -d /usr/mdec ]; then
+ cp /usr/mdec/boot /mnt/boot
+ sync
+ /usr/mdec/installboot -v /mnt/boot /usr/mdec/bootxx $_rawdev
+ else
+ echo "No boot block prototypes found, you must run installboot manually."
+ fi
}
md_labeldisk() {
echo "huh"
@@ -277,3 +292,11 @@ __kernfs_failed_1
fi
> ${KERNFSMOUNTED}
}
+
+hostname() {
+ case $# in
+ 0) cat /kern/hostname ;;
+ 1) echo "$1" > /kern/hostname ;;
+ *) echo "usage: hostname [name-of-host]"
+ esac
+}
diff --git a/distrib/alpha/ramdisk/raminst.conf b/distrib/alpha/ramdisk/raminst.conf
index 0f952757072..ea4c5534c29 100644
--- a/distrib/alpha/ramdisk/raminst.conf
+++ b/distrib/alpha/ramdisk/raminst.conf
@@ -1,16 +1,16 @@
#
-# $OpenBSD: raminst.conf,v 1.5 1997/05/09 04:53:14 millert Exp $
+# $OpenBSD: raminst.conf,v 1.6 1997/05/09 17:59:37 millert Exp $
#
# ram.conf - unified binary for the RAM disk
#
srcdirs bin sbin usr.bin usr.sbin
-srcdirs gnu/usr.bin
+srcdirs gnu/usr.bin sys/arch/alpha/stand
-progs cat chmod chown cut cp dd df disklabel ed grep expr fsck_ffs ftp
-progs gzip hostname ifconfig init less ln ls mkdir mknod mount
+progs cat chmod chown cp dd df disklabel ed grep expr fsck_ffs ftp
+progs gzip ifconfig init installboot less ln ls mkdir mknod mount
progs mount_cd9660 mount_kernfs mount_ffs mount_nfs
-progs mv newfs pdksh reboot rm route sed sleep sort stty
+progs mv newfs pdksh reboot rm route sed sleep stty
progs sync pax umount
#progs slattach tip vim