summaryrefslogtreecommitdiffstats
path: root/bin/ptxdist
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2012-06-13 17:23:30 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-06-13 19:20:18 +0200
commitf9312bc9034f4e229c1e598c5867fc87d232066c (patch)
tree6e1dbcb41cebac4a040fa453444864c6c04eb1f8 /bin/ptxdist
parent4bbbb0dad905ea4c78201791e873dd2fc1bcef3b (diff)
downloadptxdist-f9312bc9034f4e229c1e598c5867fc87d232066c.tar.gz
ptxdist-f9312bc9034f4e229c1e598c5867fc87d232066c.tar.xz
Core CPU count detection: do not rely on a fixed path to the 'sysctl' tool
Using a fix path is a bad idea. Lets 'configure' search for the tool and use it as is. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'bin/ptxdist')
-rwxr-xr-xbin/ptxdist2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index e10c03d0f..e96201e5f 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -2140,7 +2140,7 @@ setup_config() {
cpus=1
fi
# and this one is tested on Darwin and should work on BSDs
- elif ! cpus="$(/usr/sbin/sysctl -n hw.ncpu)" 2> /dev/null; then
+ elif ! cpus="$(sysctl -n hw.ncpu)" 2> /dev/null; then
cpus=1
fi
local pmf_intern="-j$(( ${cpus} * 2 ))"