From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.phycard.de ([217.6.246.34] helo=root.phytec.de) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1T49Nm-000322-1b for ptxdist@pengutronix.de; Wed, 22 Aug 2012 13:46:06 +0200 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 76035BF0D9 for ; Wed, 22 Aug 2012 13:45:56 +0200 (CEST) From: Jan Weitzel Date: Wed, 22 Aug 2012 13:45:56 +0200 Message-Id: <1345635956-9843-1-git-send-email-j.weitzel@phytec.de> Subject: [ptxdist] [PATCH] ptxdist: Let grep count the lines 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 Signed-off-by: Jan Weitzel --- bin/ptxdist | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/bin/ptxdist b/bin/ptxdist index b8b5e99..e831562 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -2140,7 +2140,7 @@ setup_config() { # this one is for Linux if [ -r /proc/cpuinfo ]; then - cpus="$(egrep '^(processor|cpu )' /proc/cpuinfo | wc -l)" + cpus="$(egrep -c '^(processor|cpu )' /proc/cpuinfo)" if [ ${cpus} -eq 0 ]; then cpus=1 fi -- 1.7.0.4 -- ptxdist mailing list ptxdist@pengutronix.de