From f3e3de6fd59ceb5b05bebb9628c703e5a6bb2853 Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Fri, 20 Sep 2024 17:03:08 +0100 Subject: Enable iwd's DHCP when using elogind --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 3d89926..a89c482 100644 --- a/install.sh +++ b/install.sh @@ -308,9 +308,13 @@ 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 turnstile rundir if [[ "${elogind}" == false ]]; then + # Manage rundir with turnstile when not using elogind sed "s/manage_rundir = no/manage_rundir = yes/" -i /mnt/etc/turnstile/turnstiled.conf +else + # Use iwd's DHCP client instead of dhcpcd when using elogind + [[ ! -d /mnt/etc/iwd ]] && mkdir /mnt/etc/iwd + printf "[General]\nEnableNetworkConfiguration=true\n" > /mnt/etc/iwd/main.conf fi # Set MAKEFLAGS to match CPU threads for faster compiling -- cgit