summaryrefslogtreecommitdiff
path: root/distrib/sparc64
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-01-03 00:36:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-01-03 00:36:51 +0000
commit4f36400cbcb2c4caa07fa9700490d44049dadc97 (patch)
tree9e346d6b18af2322565b8f5baa9ef11a21ce4eea /distrib/sparc64
parentb0360a6716b2d3f5796df5b2ba9aaa1946692d86 (diff)
reduce the amount of cd'ing in the install script, since it sucks
to change the environment that functions assume they run in. use sub-shells or absolute paths when possible. ok krw
Diffstat (limited to 'distrib/sparc64')
-rw-r--r--distrib/sparc64/common/install.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/distrib/sparc64/common/install.md b/distrib/sparc64/common/install.md
index 368b7e541c0..6f42920c0d2 100644
--- a/distrib/sparc64/common/install.md
+++ b/distrib/sparc64/common/install.md
@@ -1,4 +1,4 @@
-# $OpenBSD: install.md,v 1.33 2009/06/04 00:44:47 krw Exp $
+# $OpenBSD: install.md,v 1.34 2011/01/03 00:36:50 deraadt Exp $
# $NetBSD: install.md,v 1.3.2.5 1996/08/26 15:45:28 gwr Exp $
#
#
@@ -43,11 +43,10 @@ NCPU=$(sysctl -n hw.ncpufound)
md_installboot() {
local _prefix
- cd /mnt
- if [[ -f bsd.mp ]] && ((NCPU > 1)); then
+ if [[ -f /mnt/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
+ mv /mnt/bsd /mnt/bsd.sp 2>/dev/null
+ mv /mnt/bsd.mp /mnt/bsd
fi
# Figure out which /usr/mdec directory to use