- Solved
- Minor
Unraid starts upon boot the wlan0 interface despite being set to disabled and subsequently causes an issue with certain scripts. For example, having your array automatically decryped when your server is starting doesnt work anymore because unraid fails to download from the destination, unless you deploy a loop to keep trying.
This works in 6.12.x, 7.0.x and on beta2 and beta3 with activated wifi OR beta2 and 3 without having physically a wifi card installed in the system
#!/bin/bash
if [[ ! -e /root/keyfile ]]; then
wget http://192.168.2.2/keyfile
mv keyfile /root/
fi
That script does no longer work with beta2 or beta3 when you disabled wifi but have a wifi card physically installed.
To get it working on beta2 and beta3 with disabled wifi you need to incorporate a loop like this
#!/bin/bash
if [[ ! -e /root/keyfile ]]; then
wget http://192.168.2.2/keyfile
while true; do
if [ -f keyfile ]; then
break
else
sleep 1
wget http://192.168.2.2/keyfile
fi
done
mv keyfile /root/
fi
Then, unraid will automatically start.
Log from when you enable wifi and boot
Apr 5 08:35:23 Magnon-Box rc.wireless: Starting WiFi network...
Apr 5 08:35:23 Magnon-Box rc.wireless: ip link add link wlan0 name shim-wlan0 type ipvtap mode l2 bridge
Apr 5 08:35:23 Magnon-Box rc.wireless: ip link set wlan0 up
Apr 5 08:35:23 Magnon-Box kernel: iwlwifi 0000:00:14.3: WFPM_UMAC_PD_NOTIFICATION: 0x20
Apr 5 08:35:23 Magnon-Box kernel: iwlwifi 0000:00:14.3: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
Apr 5 08:35:23 Magnon-Box kernel: iwlwifi 0000:00:14.3: WFPM_AUTH_KEY_0: 0x90
Apr 5 08:35:23 Magnon-Box kernel: iwlwifi 0000:00:14.3: CNVI_SCU_SEQ_DATA_DW9: 0x0
Apr 5 08:35:23 Magnon-Box kernel: iwlwifi 0000:00:14.3: RFIm is deactivated, reason = 5
Apr 5 08:35:24 Magnon-Box kernel: iwlwifi 0000:00:14.3: Registered PHC clock: iwlwifi-PTP, with index: 1
Apr 5 08:35:24 Magnon-Box rc.wireless: ip link set shim-wlan0 up
Apr 5 08:35:24 Magnon-Box rc.wireless: iw reg set DE
Apr 5 08:35:24 Magnon-Box rc.wireless: Joining WiFi network...
Apr 5 08:35:24 Magnon-Box update_services: remove queued job 1
Apr 5 08:35:24 Magnon-Box update_services: queue new job 2, wait for 20s
Apr 5 08:35:24 Magnon-Box rc.wireless: wpa_configuration SAE
Apr 5 08:35:24 Magnon-Box rc.wireless: wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
Apr 5 08:35:27 Magnon-Box kernel: wlan0: authenticate with 2c:91:ab:83:bc:69 (local address=ac:19:8e:9d:a5:fd)
Apr 5 08:35:27 Magnon-Box kernel: wlan0: send auth to 2c:91:ab:83:bc:69 (try 1/3)
Apr 5 08:35:28 Magnon-Box kernel: wlan0: authenticate with 2c:91:ab:83:bc:69 (local address=ac:19:8e:9d:a5:fd)
Apr 5 08:35:28 Magnon-Box kernel: wlan0: send auth to 2c:91:ab:83:bc:69 (try 1/3)
Apr 5 08:35:28 Magnon-Box kernel: wlan0: authenticated
Apr 5 08:35:28 Magnon-Box kernel: wlan0: associate with 2c:91:ab:83:bc:69 (try 1/3)
Apr 5 08:35:28 Magnon-Box kernel: wlan0: RX AssocResp from 2c:91:ab:83:bc:69 (capab=0x1511 status=0 aid=4)
Apr 5 08:35:28 Magnon-Box kernel: wlan0: associated
Apr 5 08:35:28 Magnon-Box kernel: wlan0: Limiting TX power to 20 (23 - 3) dBm as advertised by 2c:91:ab:83:bc:69
Apr 5 08:35:28 Magnon-Box rc.wireless: WiFi network... Started.
Log from when you disable wifi and boot
Apr 5 10:50:37 Magnon-Box rc.wireless: Starting WiFi network...
Apr 5 10:50:37 Magnon-Box rc.wireless: ip link add link wlan0 name shim-wlan0 type ipvtap mode l2 bridge
Apr 5 10:50:37 Magnon-Box rc.wireless: ip link set wlan0 up
Apr 5 10:50:38 Magnon-Box kernel: iwlwifi 0000:00:14.3: WFPM_UMAC_PD_NOTIFICATION: 0x20
Apr 5 10:50:38 Magnon-Box kernel: iwlwifi 0000:00:14.3: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
Apr 5 10:50:38 Magnon-Box kernel: iwlwifi 0000:00:14.3: WFPM_AUTH_KEY_0: 0x90
Apr 5 10:50:38 Magnon-Box kernel: iwlwifi 0000:00:14.3: CNVI_SCU_SEQ_DATA_DW9: 0x0
Apr 5 10:50:38 Magnon-Box kernel: iwlwifi 0000:00:14.3: RFIm is deactivated, reason = 5
Apr 5 10:50:38 Magnon-Box kernel: iwlwifi 0000:00:14.3: Registered PHC clock: iwlwifi-PTP, with index: 1
Apr 5 10:50:38 Magnon-Box rc.wireless: ip link set shim-wlan0 up
Apr 5 10:50:38 Magnon-Box rc.wireless: iw reg set DE
Apr 5 10:50:58 Magnon-Box rc.wireless: WiFi network... Failed.
magnon-box-diagnostics-20250405-2042.zip
I had the opportunity to downgrade back to 7.0.1 with the original 1st script and it just works
magnon-box-diagnostics-20250405-2206.zip
I do have to mention that originally, on beta1 upon first boot, the array did get unlocked automatically as well. So either something has changed in the behaviour or just the fact that the wireless.cfg was not present at that first upgrade to the beta1