From 9a1a13fe90acb790e945daa7b2a9a9ed5e70798a Mon Sep 17 00:00:00 2001 From: William Harrington Date: Wed, 17 Mar 2021 16:45:10 -0500 Subject: 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. --- download.sh | 2 +- lfs.sh | 8 +++++++- 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 -- cgit v1.2.3-54-g00ecf