summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.d/autoconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/autoconfig b/init.d/autoconfig
index fd68011..9bc3a38 100644
--- a/init.d/autoconfig
+++ b/init.d/autoconfig
@@ -393,7 +393,7 @@ start() {
echo "0" > /proc/sys/kernel/printk
get_config
- local numcpu="$(grep -c '^processor[[:space:]]\+:' /proc/cpuinfo)"
+ local numcpu="$(nproc)"
eindent
ebegin "Setting sane defaults in /etc/portage/make.conf"
if [ -f "/etc/portage/make.conf" ] && checkpath -W /etc/portage/make.conf; then