From 590fa7ebfa5f3617de0b5675cb9e4b79f03779ac Mon Sep 17 00:00:00 2001 From: William Harrington Date: Mon, 22 Mar 2021 13:13:41 -0500 Subject: Remove interpreter from scripts that are sourced. Remove executable bits are required. --- env.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'env.sh') 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}" -- cgit v1.2.3-54-g00ecf