summaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2016-02-04 13:45:24 +0000
committerjperkin <jperkin@pkgsrc.org>2016-02-04 13:45:24 +0000
commit27a1536bc312619d91408544f9a9f5fd2f0fb560 (patch)
treed01ebcf3eda08434e6561daa47ddb332d12f3f01 /bootstrap/bootstrap
parent1d75a0712ade6b06d163b1a08620858a9db061d6 (diff)
downloadpkgsrc-27a1536bc312619d91408544f9a9f5fd2f0fb560.tar.gz
Fix PowerPC 32-bit case.
Diffstat (limited to 'bootstrap/bootstrap')
-rwxr-xr-xbootstrap/bootstrap4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index a4e91ea2a5a..a4c114abbf8 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.227 2016/01/24 16:14:44 jperkin Exp $
+# $NetBSD: bootstrap,v 1.228 2016/02/04 13:45:24 jperkin Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -222,7 +222,7 @@ get_machine_arch_darwin()
;;
powerpc)
# sysctl mib exists on 64-bit hardware
- if [ `sysctl -n hw.optional.64bitops 2>/dev/null` = "1" ]; then
+ if [ -n "`sysctl -n hw.optional.64bitops 2>/dev/null`" ]; then
echo "powerpc64"
else
echo "powerpc"