Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions install/config/hardware/network.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Ensure iwd service will be started
sudo systemctl enable iwd.service

# Enable systemd-networkd to handle DHCP for iwd connections
sudo systemctl enable systemd-networkd.service

# Prevent systemd-networkd-wait-online timeout on boot
sudo systemctl disable systemd-networkd-wait-online.service
sudo systemctl mask systemd-networkd-wait-online.service

# Fix rfkill race condition on boot (WiFi soft-blocked before systemd-rfkill restores state)
# This ensures WiFi is unblocked when the interface appears, fixing issues with MediaTek MT7925 and similar
if [[ ! -f /etc/udev/rules.d/81-wifi-unblock.rules ]]; then
echo 'ACTION=="add", SUBSYSTEM=="net", KERNEL=="wlan*", RUN+="/usr/bin/rfkill unblock wifi"' | sudo tee /etc/udev/rules.d/81-wifi-unblock.rules
fi