Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable wifi-check.sh message if wifi is intentionally disabled? #7

Open
mariomadproductions opened this issue Dec 7, 2021 · 3 comments

Comments

@mariomadproductions
Copy link

It seems that if the wifi is turned off using rfkill (which is apparently what disabling WiFi in the desktop environment's panel does), then /etc/profile.d/wifi-check.sh displays this message each time you log in:

Wi-Fi is currently blocked by rfkill.
Use raspi-config to set the country before use.

I assume the purpose of this is to inform the user that the wifi may be unintentionally disabled, but its annoying to see this message each time you log in, if you don't want the wifi enabled.

@XECDesign
Copy link
Member

How would you determine whether it was disabled intentionally?

@pelwell
Copy link
Member

pelwell commented Jan 11, 2022

One would have to check how it would affect the other scripts (e.g. raspi-config), but an explicit country= with no CC in wpa_supplicant.conf could be a way to indicate that WiFi is intentionally disabled.

@XECDesign
Copy link
Member

XECDesign commented Jan 11, 2022

wpa_supplicant.conf is not directly readable by the user and if you try to set an invalid country (like having a blank string), through wpa_cli, it will fail.

Without a crystal ball, I don't think we can cover 100% of cases until we get a proper global region which just does the right thing out of the box.

We could drop some "this was done intentionally" file somewhere when wifi is toggled through raspi-config and check for it, but that wouldn't work if rfkill is used directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants