aboutsummaryrefslogtreecommitdiffstats
path: root/env.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-03-23 13:17:02 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-03-23 13:17:02 -0500
commit66d4171655e0b93766c82f50ce06521f85b58222 (patch)
tree1b6d1cbcbc169e5cbb4e6ea6698ed91d82d7cc88 /env.sh
parent9d68d5da4115353816ab4f6b1c7a4f5db43576f9 (diff)
parent887bf450c01c511a3f6d048d3db78e8edfb21e8a (diff)
Merge branch 'master' into chapter7
Diffstat (limited to 'env.sh')
-rw-r--r--env.sh34
1 files changed, 20 insertions, 14 deletions
diff --git a/env.sh b/env.sh
index 273da6c..45a5ca4 100644
--- a/env.sh
+++ b/env.sh
@@ -1,32 +1,38 @@
+#!/bin/bash
+
# Begin book environment settings
-export PS1='\u:\w\$ '
+
+PS1='\u:\w\$ '
set +h
umask 022
-export LFS=/mnt/lfs
-export LC_ALL=POSIX
-export LFS_TGT=$(uname -m)-lfs-linux-gnu
+LFS=/mnt/lfs
+LC_ALL=POSIX
+LFS_TGT=$(uname -m)-lfs-linux-gnu
PATH=/usr/bin
if [ ! -L /bin ]; then PATH=/bin:${PATH}; fi
-export PATH=${LFS}/tools/bin:${PATH}
-export CONFIG_SITE=${LFS}/usr/share/config.site
+PATH=${LFS}/tools/bin:${PATH}
+CONFIG_SITE=${LFS}/usr/share/config.site
# End book environment settings
# LFS Version being built
-export LFS_VER=LFS_10_1
+LFS_VER=LFS_10_1
# Disk where LFS partition will exist / or exists
-export LFS_DISK=/dev/sdb
+LFS_DISK=/dev/sdb
# Partition number where LFS will exist / or exists
-export LFS_PART=1
+LFS_PART=1
# LFS User password (not used at this time)
-export LFS_PWD=lfs
+LFS_PWD=lfs
# Get number of online processors
-export NUMPROCS=$(getconf _NPROCESSORS_ONLN)
-numjobs=$(expr ${NUMPROCS} \* 2 - 1)
-
+NUMPROCS=$(getconf _NPROCESSORS_ONLN)
+numjobs=$((NUMPROCS * 2 - 1))
+echo $numjobs
# Make flags for multiple jobs
-export MAKEFLAGS="-j ${numjobs}"
+MAKEFLAGS="-j ${numjobs}"
+
+export PS1 LC_ALL LFS LFS_TGT PATH CONFIG_SITE
+export LFS_VER LFS_DISK LFS_PART LFS_PWD NUMPROCS MAKEFLAGS