summaryrefslogtreecommitdiff
path: root/distrib/macppc/ramdisk
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/macppc/ramdisk')
-rw-r--r--distrib/macppc/ramdisk/install.md13
1 files changed, 12 insertions, 1 deletions
diff --git a/distrib/macppc/ramdisk/install.md b/distrib/macppc/ramdisk/install.md
index 6568cccc189..446a8140d20 100644
--- a/distrib/macppc/ramdisk/install.md
+++ b/distrib/macppc/ramdisk/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.38 2009/04/12 12:56:02 krw Exp $
+# $OpenBSD: install.md,v 1.39 2009/04/24 01:04:33 krw Exp $
#
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -34,10 +34,21 @@
MDXAPERTURE=2
ARCH=ARCH
+NCPU=$(sysctl -n hw.ncpufound)
+
+((NCPU > 1)) && { DEFAULTSETS="bsd bsd.rd bsd.mp" ; SANESETS="bsd bsd.mp" ; }
md_installboot() {
local _disk=$1
+ cd /mnt
+ if [[ -f bsd.mp ]] && ((NCPU > 1)); then
+ echo "Multiprocessor machine; using bsd.mp instead of bsd."
+ mv bsd bsd.sp 2>/dev/null
+ mv bsd.mp bsd
+ ln -sf bsd bsd.mp
+ fi
+
[[ $disklabeltype == MBR ]] || return
echo -n "Copying 'ofwboot' to the boot partition (${_disk}i)..."