diff options
author | Juergen Beisert <jbe@pengutronix.de> | 2012-06-13 17:23:30 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-06-13 19:20:18 +0200 |
commit | f9312bc9034f4e229c1e598c5867fc87d232066c (patch) | |
tree | 6e1dbcb41cebac4a040fa453444864c6c04eb1f8 /bin/ptxdist | |
parent | 4bbbb0dad905ea4c78201791e873dd2fc1bcef3b (diff) | |
download | ptxdist-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-x | bin/ptxdist | 2 |
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 ))" |