diff options
author | Rick Farina (Zero_Chaos) <zerochaos@gentoo.org> | 2020-04-23 14:08:16 -0400 |
---|---|---|
committer | Rick Farina (Zero_Chaos) <zerochaos@gentoo.org> | 2020-04-23 14:08:16 -0400 |
commit | 55897d049a5a479028783def544fd616cbc53427 (patch) | |
tree | 2bc641c8b82fbfd9483845594f536d4427ad4b37 | |
parent | move secureconsole boot arg detection to the right place (diff) | |
download | livecd-tools-55897d049a5a479028783def544fd616cbc53427.tar.gz livecd-tools-55897d049a5a479028783def544fd616cbc53427.tar.bz2 livecd-tools-55897d049a5a479028783def544fd616cbc53427.zip |
save a grep and a count
coreutils has a whole utility just to tell you the cpu count, use it
Signed-off-by: Rick Farina (Zero_Chaos) <zerochaos@gentoo.org>
-rw-r--r-- | init.d/autoconfig | 2 |
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 |