diff --git a/operator_setup.sh b/operator_setup.sh index bc9f07c..c94ee34 100755 --- a/operator_setup.sh +++ b/operator_setup.sh @@ -529,6 +529,11 @@ EOF # 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" + # 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 mkdir -p "${MOUNT_POINT}/etc/udev/rules.d" cat > "${MOUNT_POINT}/etc/udev/rules.d/70-wifi-pm.rules" << 'EOF'