aboutsummaryrefslogtreecommitdiffstats
path: root/env.sh
diff options
context:
space:
mode:
Diffstat (limited to 'env.sh')
-rw-r--r--env.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/env.sh b/env.sh
index 515995d..a2eab0b 100644
--- a/env.sh
+++ b/env.sh
@@ -1,5 +1,3 @@
-#!/bin/bash
-
# Begin book environment settings
export PS1='\u:\w\$ '
set +h
@@ -15,7 +13,7 @@ export CONFIG_SITE=${LFS}/usr/share/config.site
# End book environment settings
# LFS Version being built
-export LFS_VER=LFS10_1
+export LFS_VER=LFS_10_1
# Disk where LFS partition will exist / or exists
export LFS_DISK=/dev/sdb
@@ -29,5 +27,9 @@ export LFS_PWD=lfs
# Sources directory for LFS
export LFS_SRC=${LFS}/sources
+# Get number of online processors
+export NUMPROCS=$(getconf _NPROCESSORS_ONLN)
+numjobs=$(expr ${NUMPROCS} \* 2 - 1)
+
# Make flags for multiple jobs
-export MAKEFLAGS="-j 3" \ No newline at end of file
+export MAKEFLAGS="-j ${numjobs}"