mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +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
|
#### End services
|
||||||
|
|
||||||
#### Start network layout
|
#### 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
|
#- name: Redhat networking
|
||||||
# include_tasks: ifcfg_mods.yml
|
# include_tasks: ifcfg_mods.yml
|
||||||
# when: is_redhat
|
# when: is_redhat
|
||||||
|
|
|
@ -53,10 +53,11 @@
|
||||||
line: country={{ host_country_code }}
|
line: country={{ host_country_code }}
|
||||||
when: country_code.stdout is defined and country_code.stdout | length == 0
|
when: country_code.stdout is defined and country_code.stdout | length == 0
|
||||||
|
|
||||||
# This should go away, should only be unblocked by raspi-config
|
# 2024-12-18: SEE 'raspi-config nonint do_wifi_country {{ host_country_code }}' in roles/network/tasks/main.yml
|
||||||
- name: Enable the WiFi with rfkill
|
# # This should go away, should only be unblocked by raspi-config
|
||||||
shell: rfkill unblock wifi
|
# - name: Enable the WiFi with rfkill
|
||||||
ignore_errors: True
|
# shell: rfkill unblock wifi
|
||||||
|
# ignore_errors: True
|
||||||
|
|
||||||
- name: Copy the bridge script for RPi
|
- name: Copy the bridge script for RPi
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue