summaryrefslogtreecommitdiffstats
path: root/arch-install/arch-setup-1.sh
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-07-21 16:04:50 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2023-07-21 16:04:50 +0200
commit42bed5b08dfc79cb76b575cd764d567fc0ad9c41 (patch)
treee9a3c4435933de759989694e1e21c24c05d7ec9e /arch-install/arch-setup-1.sh
parentc06ff8e947dcda5c115306a916b6d62b3b898695 (diff)
downloadbin-42bed5b08dfc79cb76b575cd764d567fc0ad9c41.zip
bin-42bed5b08dfc79cb76b575cd764d567fc0ad9c41.tar.gz
improve arch-install scripts
Diffstat (limited to 'arch-install/arch-setup-1.sh')
-rwxr-xr-xarch-install/arch-setup-1.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch-install/arch-setup-1.sh b/arch-install/arch-setup-1.sh
index a267734..7b08993 100755
--- a/arch-install/arch-setup-1.sh
+++ b/arch-install/arch-setup-1.sh
@@ -17,14 +17,14 @@ echo "MKINITCPIO"
mkinitcpio -p linux
echo "GRUB"
-#grub-install --target=i386-pc --recheck /dev/sda
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub_uefi --recheck
grub-mkconfig -o /boot/grub/grub.cfg
+ETH=$(ip add | grep '^2' | cut -d ':' -f2 | sed 's/ //g')
cat > /etc/systemd/network/10-wired.network << EOF
[Match]
-Name=enp0s*
+Name=$ETH
[Network]
DHCP=yes