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
|
#!/bin/bash
|
||||||
|
|
||||||
main() {
|
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..."
|
echo "The installer is about to begin setting up the environment. Please wait..."
|
||||||
sleep 2
|
sleep 2
|
||||||
cat > ~/.bash_profile << "EOF"
|
|
||||||
|
cat > ~/.bash_profile << "EOF"
|
||||||
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
|
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > ~/.bashrc << "EOF"
|
cat > ~/.bashrc << "EOF"
|
||||||
set +h
|
set +h
|
||||||
umask 022
|
umask 022
|
||||||
LFS=/mnt/lfs
|
LFS=/mnt/lfs
|
||||||
|
@ -22,13 +24,17 @@ if [ ! -L /bin ]; then PATH=/bin:$PATH; fi
|
||||||
PATH=$LFS/tools/bin:$PATH
|
PATH=$LFS/tools/bin:$PATH
|
||||||
CONFIG_SITE=$LFS/usr/share/config.site
|
CONFIG_SITE=$LFS/usr/share/config.site
|
||||||
export LFS LC_ALL LFS_TGT PATH CONFIG_SITE
|
export LFS LC_ALL LFS_TGT PATH CONFIG_SITE
|
||||||
EOF
|
|
||||||
|
|
||||||
cat >> ~/.bashrc << "EOF"
|
|
||||||
export MAKEFLAGS=-j$(nproc)
|
export MAKEFLAGS=-j$(nproc)
|
||||||
|
export SYS_TRIPLET=/usr/bin/gcc -dumpmachine
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
source ~/.bash_profile
|
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
|
main
|
|
@ -7,7 +7,7 @@ LFS v12.2-systemd book chapter: 4.2.
|
||||||
## To do
|
## To do
|
||||||
```md
|
```md
|
||||||
[ ] Make a package manager
|
[ ] Make a package manager
|
||||||
[X] Finish the project in the first place
|
[ ] Finish the project in the first place
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
Loading…
Add table
Reference in a new issue