2025-07-10 13:45:17 -05:00
|
|
|
# Install iwd explicitly if it wasn't included in archinstall
|
|
|
|
# This can happen if archinstall used ethernet
|
2025-07-17 18:57:37 -04:00
|
|
|
if ! command -v iwctl &>/dev/null; then
|
2025-07-10 13:45:17 -05:00
|
|
|
yay -S --noconfirm --needed iwd
|
|
|
|
sudo systemctl enable --now iwd.service
|
|
|
|
fi
|
2025-07-15 09:26:54 +05:30
|
|
|
|
|
|
|
# Fix systemd-networkd-wait-online timeout for multiple interfaces
|
|
|
|
# Wait for any interface to be online rather than all interfaces
|
|
|
|
# https://wiki.archlinux.org/title/Systemd-networkd#Multiple_interfaces_that_are_not_connected_all_the_time
|
|
|
|
sudo mkdir -p /etc/systemd/system/systemd-networkd-wait-online.service.d
|
|
|
|
sudo tee /etc/systemd/system/systemd-networkd-wait-online.service.d/wait-for-only-one-interface.conf >/dev/null <<EOF
|
|
|
|
[Service]
|
|
|
|
ExecStart=
|
|
|
|
ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --any
|
|
|
|
EOF
|