summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2008-05-20 21:56:23 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2008-05-20 21:56:23 +0000
commit2ed40c9434c9f1a61701b3fc3ef61d41f9c43f44 (patch)
tree4c483432e18fca7425a9e91fb740a7935ee410f0 /bin
parent2278e9819c41b500424dfd88c7c9c136d3106952 (diff)
downloadptxdist-2ed40c9434c9f1a61701b3fc3ef61d41f9c43f44.tar.gz
ptxdist-2ed40c9434c9f1a61701b3fc3ef61d41f9c43f44.tar.xz
* bin/ptxdist:
support systems the don't have /proc/cpuinfo git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8191 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ptxdist12
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index 15d4a4bba..1225b8d97 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -1036,10 +1036,14 @@ setup_config() {
if [ -n "${PARALLELMFLAGS}" ]; then
pmf_intern="${PARALLELMFLAGS}"
unset PARALLELMFLAGS
- elif [ -r /proc/cpuinfo ]; then
- cpus="$(egrep '^(processor|cpu )' /proc/cpuinfo | wc -l)"
- if [ $cpus -eq 0 ]; then
- cpus="1"
+ else
+ if [ -r /proc/cpuinfo ]; then
+ cpus="$(egrep '^(processor|cpu )' /proc/cpuinfo | wc -l)"
+ if [ $cpus -eq 0 ]; then
+ cpus=1
+ fi
+ else
+ cpus=1
fi
pmf_intern=-j$(( $cpus * 2 ))