diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-12-31 19:26:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-12-31 19:26:47 +0000 |
commit | e767ea2cf4cfd01c838517c0523b89dc127b07e8 (patch) | |
tree | 9098158d3e4819a1289c1116c9cf87f3a69cab55 /distrib/hppa | |
parent | 4ba86147879810918713dd38e68671475b552005 (diff) |
add support for bsd.mp
Diffstat (limited to 'distrib/hppa')
-rw-r--r-- | distrib/hppa/install.md | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/distrib/hppa/install.md b/distrib/hppa/install.md index c512f16bc04..6c0f1696beb 100644 --- a/distrib/hppa/install.md +++ b/distrib/hppa/install.md @@ -1,11 +1,21 @@ -# $OpenBSD: install.md,v 1.16 2009/06/14 00:12:21 deraadt Exp $ +# $OpenBSD: install.md,v 1.17 2010/12/31 19:26:46 deraadt Exp $ # # machine dependent section of installation/upgrade script. # MDTERM=vt100 +NCPU=$(sysctl -n hw.ncpufound) + +((NCPU > 1)) && { DEFAULTSETS="bsd bsd.rd bsd.mp" ; SANESETS="bsd bsd.mp" ; } md_installboot() { + 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 + fi + /sbin/disklabel -B $1 } |