mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
Merge pull request #3867 from holta/wifi-unblock
Refine PR #3866 to unblock WiFi hotspot on newer RasPiOS with NM (NetworkManager)
This commit is contained in:
commit
d886f39bbf
2 changed files with 12 additions and 4 deletions
|
@ -68,6 +68,13 @@
|
|||
#### End services
|
||||
|
||||
#### Start network layout
|
||||
|
||||
# 2024-12-18: As `rfkill unblock wifi` formerly in rpi_debian.yml wasn't enough, especially with NM (NetworkManager)
|
||||
- name: Run 'raspi-config nonint do_wifi_country {{ host_country_code }}' (using var host_country_code) to unblock WiFi, if RasPiOS
|
||||
command: raspi-config nonint do_wifi_country {{ host_country_code }}
|
||||
when: is_raspbian
|
||||
#ignore_errors: True
|
||||
|
||||
#- name: Redhat networking
|
||||
# include_tasks: ifcfg_mods.yml
|
||||
# when: is_redhat
|
||||
|
|
|
@ -53,10 +53,11 @@
|
|||
line: country={{ host_country_code }}
|
||||
when: country_code.stdout is defined and country_code.stdout | length == 0
|
||||
|
||||
# This should go away, should only be unblocked by raspi-config
|
||||
- name: Enable the WiFi with rfkill
|
||||
shell: rfkill unblock wifi
|
||||
ignore_errors: True
|
||||
# 2024-12-18: SEE 'raspi-config nonint do_wifi_country {{ host_country_code }}' in roles/network/tasks/main.yml
|
||||
# # This should go away, should only be unblocked by raspi-config
|
||||
# - name: Enable the WiFi with rfkill
|
||||
# shell: rfkill unblock wifi
|
||||
# ignore_errors: True
|
||||
|
||||
- name: Copy the bridge script for RPi
|
||||
template:
|
||||
|
|
Loading…
Reference in a new issue