summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorjperkin <jperkin>2016-02-04 13:45:24 +0000
committerjperkin <jperkin>2016-02-04 13:45:24 +0000
commit381adad5b083e1b7d791440c9554bce866439d00 (patch)
treed01ebcf3eda08434e6561daa47ddb332d12f3f01 /bootstrap
parent6c68efd29a834e10dd8fa380fe107f03261785a7 (diff)
downloadpkgsrc-381adad5b083e1b7d791440c9554bce866439d00.tar.gz
Fix PowerPC 32-bit case.
Diffstat (limited to '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"