From 2dcee57e66b4c554ab201f81609129b111449d98 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Litza Date: Thu, 20 Oct 2016 16:43:07 +0200 Subject: [PATCH] Simplify command to determine number of processors --- docs/features/autoupdater.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/features/autoupdater.rst b/docs/features/autoupdater.rst index b89a1ebe..7cfd0f21 100644 --- a/docs/features/autoupdater.rst +++ b/docs/features/autoupdater.rst @@ -28,7 +28,7 @@ A fully automated nightly build could use the following commands: (cd site && git pull) make update make clean - NUM_CORES_PLUS_ONE=$(expr $(lscpu|grep -e '^CPU(s):'|xargs|cut -d" " -f2) + 1) + NUM_CORES_PLUS_ONE=$(expr $(nproc) + 1) make -j$NUM_CORES_PLUS_ONE GLUON_TARGET=ar71xx-generic GLUON_BRANCH=experimental make manifest GLUON_BRANCH=experimental contrib/sign.sh $SECRETKEY output/images/sysupgrade/experimental.manifest