i was working on networking 💀

This commit is contained in:
kevadesu 2025-01-27 22:19:59 +01:00
parent c5d8126c38
commit 8d0b5d222c
2 changed files with 17 additions and 1 deletions

View file

@ -502,7 +502,7 @@ function eal.install.cross-toolchain() {
ln -sv gcc $LFS/usr/bin/cc
popd
popd
echo "Operations as LFS user are now over. Switching to chroot"
echo "Cross-Toolchain installation has completed."
}

View file

@ -1590,3 +1590,19 @@ function eic.system.build.clean() {
find /usr -depth -name $(uname -m)-lfs-linux-gnu\* | xargs rm -rf
userdel -r tester
}
function eic.config.network() {
ip link
ln -s /dev/null /etc/systemd/network/99-default.link
read -p "Enter MAC address of desired device: " OPT_MAC
cat > /etc/systemd/network/10-ether0.link << "EOF"
[Match]
# Change the MAC address as appropriate for your network device
MACAddress=${OPT_MAC}
[Link]
Name=ether0
EOF
d
}