mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] ptxdist: Let grep count the lines
@ 2012-08-22 11:45 Jan Weitzel
  0 siblings, 0 replies; only message in thread
From: Jan Weitzel @ 2012-08-22 11:45 UTC (permalink / raw)
  To: ptxdist


Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
---
 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-08-22 11:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-22 11:45 [ptxdist] [PATCH] ptxdist: Let grep count the lines Jan Weitzel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox