aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-03-17 16:45:10 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-03-17 16:45:10 -0500
commit9a1a13fe90acb790e945daa7b2a9a9ed5e70798a (patch)
tree161f0b1f012379fdf6e14c0cc0daafcee4570e5e
parent02b059679400e64c7b156aed404195ba9b0b3b20 (diff)
source download.sh from lfs.sh and don't source lfs.sh from download.sh resulting in an infinite loop. Add commnds to lfs.sh to cpoy scripts and csv to /sources then cd into that directory, set the PATH to use tools/bin and download source.
-rwxr-xr-xdownload.sh2
-rwxr-xr-xlfs.sh8
2 files changed, 8 insertions, 2 deletions
diff --git a/download.sh b/download.sh
index a034cb6..6846524 100755
--- a/download.sh
+++ b/download.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-source lfs.sh
+
cat packages.csv | while read line; do
NAME="$(echo $line | cut -d\, -f1)"
VERSION="$(echo $line | cut -d\, -f2)"
diff --git a/lfs.sh b/lfs.sh
index 871f792..70737bc 100755
--- a/lfs.sh
+++ b/lfs.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-./versioncheck.sh
+source versioncheck.sh
export LFS_VER=LFS10_1
export LFS=/mnt/lfs
@@ -35,3 +35,9 @@ esac
#sudo useradd -s /bin/bash -g lfs -m -k /dev/null lfs
#echo -e "${LFS_PWD}\n${LFS_PWD}\n" | sudo passwd lfs
+
+cp -rf *.sh packages.csv "${LFS}/sources"
+cd "${LFS}/sources"
+export PATH="${LFS}/tools/bin:${PATH}"
+
+source download.sh \ No newline at end of file