diff options
| author | Blake Romero <blake@blkrom.com> | 2024-05-10 22:37:07 +0100 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2024-05-10 22:37:07 +0100 |
| commit | c2c6bce879b62079dc46b8cfdaa30b58ce419150 (patch) | |
| tree | 0b8f8787108e1376072b024ca9988b5bb77979f1 | |
| parent | 46581c338d8d0d1449d9d45b719d60e8dddbb63b (diff) | |
Switch to iwd's DHCP
| -rwxr-xr-x | install-artix.sh | 9 |
1 files 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)\"/" \ |
