From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay06.ispgateway.de ([80.67.31.101]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Rp4KO-0000yN-Et for ptxdist@pengutronix.de; Sun, 22 Jan 2012 21:48:11 +0100 Received: from [88.217.113.105] (helo=galilei.fritz.box) by smtprelay06.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1Rp4KN-00089v-VW for ptxdist@pengutronix.de; Sun, 22 Jan 2012 21:47:52 +0100 From: Bernhard Walle Date: Sun, 22 Jan 2012 21:47:47 +0100 Message-Id: <1327265267-48214-1-git-send-email-bernhard@bwalle.de> Subject: [ptxdist] [PATCH] Support reading number of CPUs on Mac OS X Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Tested on 10.7 (Lion). Signed-off-by: Bernhard Walle --- bin/ptxdist | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/bin/ptxdist b/bin/ptxdist index 74a52ad..4edbac3 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -2093,6 +2093,8 @@ setup_config() { if [ ${cpus} -eq 0 ]; then cpus=1 fi + elif [ "$(uname -s)" = Darwin ] ; then + cpus=$(sysctl -n hw.ncpu) else cpus=1 fi -- 1.7.7.4 -- ptxdist mailing list ptxdist@pengutronix.de