Fix WiFi: enable wpa_supplicant@wlan0 — instance was never linked

This commit is contained in:
Cobra
2026-04-08 15:56:48 -04:00
parent 334f9830e1
commit 248ba78e15
+5
View File
@@ -529,6 +529,11 @@ EOF
# Both would fight over wlan0, causing WiFi instability and SSH drops # Both would fight over wlan0, causing WiFi instability and SSH drops
rm -f "${MOUNT_POINT}/etc/systemd/system/multi-user.target.wants/wpa_supplicant.service" rm -f "${MOUNT_POINT}/etc/systemd/system/multi-user.target.wants/wpa_supplicant.service"
# Enable the per-interface instance — this is what actually drives wlan0
mkdir -p "${MOUNT_POINT}/etc/systemd/system/multi-user.target.wants"
ln -sf /lib/systemd/system/wpa_supplicant@.service \
"${MOUNT_POINT}/etc/systemd/system/multi-user.target.wants/wpa_supplicant@wlan0.service"
# Disable WiFi power saving — aw859a driver drops under load with power save on # Disable WiFi power saving — aw859a driver drops under load with power save on
mkdir -p "${MOUNT_POINT}/etc/udev/rules.d" mkdir -p "${MOUNT_POINT}/etc/udev/rules.d"
cat > "${MOUNT_POINT}/etc/udev/rules.d/70-wifi-pm.rules" << 'EOF' cat > "${MOUNT_POINT}/etc/udev/rules.d/70-wifi-pm.rules" << 'EOF'