summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2024-09-20 17:03:08 +0100
committerBlake Romero <blake@blkrom.com>2024-09-20 17:03:08 +0100
commitf3e3de6fd59ceb5b05bebb9628c703e5a6bb2853 (patch)
treead0e5dfbaf82c534a29f887c84e246f4414a223f /install.sh
parent9d28af924cf70c3352f2f6f2393ee2fe7eebe860 (diff)
Enable iwd's DHCP when using elogind
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh6
1 files changed, 5 insertions, 1 deletions
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