YunoHost / issues

General issue tracker for the YunoHost project
71 stars 7 forks source link

Add a diagnosis check for infamous "Wi-Fi is currently blocked by rfkill." on Raspbian #2395

Open tituspijean opened 1 month ago

tituspijean commented 1 month ago

On Raspbian, if the Wi-Fi country code is not set, the Wi-Fi is disabled, and the script /etc/profile.d/wifi-check.sh will add a warning into every interactive shells outputs.

This can lead to ridiculous and fatal errors when the warning is included in variables generated by a command:

2024-05-12 17:38:41,349: DEBUG - + ynh_app_setting set immich psql_port '
2024-05-12 17:38:41,349: DEBUG - Wi-Fi is currently blocked by rfkill.
2024-05-12 17:38:41,350: DEBUG - Use raspi-config to set the country before use.
2024-05-12 17:38:41,350: DEBUG - 
2024-05-12 17:38:41,350: DEBUG - 5433'

cf. https://github.com/YunoHost-Apps/immich_ynh/issues/31#issuecomment-2075666816

Solution

Let's add a Diagnosis error about this.