mirror of
https://github.com/kevadesu/TylkoLinux.git
synced 2025-03-09 16:51:57 +01:00
i was working on networking 💀
This commit is contained in:
parent
c5d8126c38
commit
8d0b5d222c
2 changed files with 17 additions and 1 deletions
|
@ -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."
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
Loading…
Add table
Reference in a new issue