mirror of
https://github.com/kevadesu/TylkoLinux.git
synced 2025-03-09 16:51:57 +01:00
i didnt do much except add a bit, none of the code is functional so far though because this shit is still incomplete
This commit is contained in:
parent
a560683577
commit
f452ab3573
2 changed files with 14 additions and 8 deletions
|
@ -1,17 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
main() {
|
||||
eal.envsetup
|
||||
eal.setup.env
|
||||
eal.setup.toolchain
|
||||
}
|
||||
|
||||
function eal.envsetup() {
|
||||
function eal.setup.env() {
|
||||
echo "The installer is about to begin setting up the environment. Please wait..."
|
||||
sleep 2
|
||||
cat > ~/.bash_profile << "EOF"
|
||||
|
||||
cat > ~/.bash_profile << "EOF"
|
||||
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
|
||||
EOF
|
||||
|
||||
cat > ~/.bashrc << "EOF"
|
||||
cat > ~/.bashrc << "EOF"
|
||||
set +h
|
||||
umask 022
|
||||
LFS=/mnt/lfs
|
||||
|
@ -22,13 +24,17 @@ if [ ! -L /bin ]; then PATH=/bin:$PATH; fi
|
|||
PATH=$LFS/tools/bin:$PATH
|
||||
CONFIG_SITE=$LFS/usr/share/config.site
|
||||
export LFS LC_ALL LFS_TGT PATH CONFIG_SITE
|
||||
EOF
|
||||
|
||||
cat >> ~/.bashrc << "EOF"
|
||||
export MAKEFLAGS=-j$(nproc)
|
||||
export SYS_TRIPLET=/usr/bin/gcc -dumpmachine
|
||||
EOF
|
||||
|
||||
source ~/.bash_profile
|
||||
}
|
||||
|
||||
eal.setup.toolchain() {
|
||||
echo -e "I: The detected system triplet is $(/usr/bin/gcc -dumpmachine)."
|
||||
export SYS_TRIPLET=$(/usr/bin/gcc -dumpmachine)
|
||||
echo
|
||||
}
|
||||
|
||||
main
|
|
@ -7,7 +7,7 @@ LFS v12.2-systemd book chapter: 4.2.
|
|||
## To do
|
||||
```md
|
||||
[ ] Make a package manager
|
||||
[X] Finish the project in the first place
|
||||
[ ] Finish the project in the first place
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
|
Loading…
Add table
Reference in a new issue