From c2c6bce879b62079dc46b8cfdaa30b58ce419150 Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Fri, 10 May 2024 22:37:07 +0100 Subject: Switch to iwd's DHCP --- install-artix.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/install-artix.sh b/install-artix.sh index 1b47ec6..5279d06 100755 --- a/install-artix.sh +++ b/install-artix.sh @@ -246,10 +246,11 @@ if [[ "${encrypt}" == true ]]; then basestrap /mnt cryptsetup-dinit fi -basestrap /mnt {iwd,dhcpcd,openntpd,cronie,openssh,ufw,dbus,seatd}-dinit +basestrap /mnt --needed \ + {iwd,dhcpcd,openntpd,cronie,openssh,ufw,dbus,seatd}-dinit # Enable services -services="dbus ufw iwd dhcpcd openntpd cronie turnstiled" +services="dbus ufw iwd openntpd cronie turnstiled seatd" # NOTE: do not quote 'services' variable or space is ignored for service in ${services}; do artix-chroot /mnt bash -c \ @@ -324,6 +325,10 @@ sed "s/# Misc options/# Misc options\n${pac_options}/g" \ # Enable firewall sed "s/ENABLED=no/ENABLED=yes/" -i /mnt/etc/ufw/ufw.conf +# Enable iwd's built-in DHCP +printf "[General]\nEnableNetworkConfiguration=true" \ + > /mnt/etc/iwd/main.conf + # Set MAKEFLAGS to match CPU threads for faster compiling cp /etc/makepkg.conf /etc/makepkg.conf.bak sed "s/#MAKEFLAGS=\".*\"/MAKEFLAGS=\"-j$(nproc)\"/" \ -- cgit