diff --git a/Einrichter-as-LFS.sh b/Einrichter-as-LFS.sh index 01cdaaf..40def09 100755 --- a/Einrichter-as-LFS.sh +++ b/Einrichter-as-LFS.sh @@ -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." } diff --git a/Einrichter-in-chroot.sh b/Einrichter-in-chroot.sh index d69fd70..814e3ab 100755 --- a/Einrichter-in-chroot.sh +++ b/Einrichter-in-chroot.sh @@ -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 +} \ No newline at end of file