mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
detect cmdline country code passed
This commit is contained in:
parent
0994a5786d
commit
0cc63d8895
1 changed files with 6 additions and 1 deletions
|
@ -269,6 +269,11 @@
|
|||
register: FW_rejected_country
|
||||
ignore_errors: True
|
||||
|
||||
- name: Detect country code passed from cmdline
|
||||
shell: dmesg | awk -F cfg80211.ieee80211_regdom= '{print $2}'
|
||||
register: cmdline_country_code
|
||||
ignore_errors: True
|
||||
|
||||
- name: In VM disable LAN - needs local_vars entry to activate
|
||||
set_fact:
|
||||
iiab_lan_iface: none
|
||||
|
@ -351,7 +356,7 @@
|
|||
value: "{{ item.value | string }}"
|
||||
with_items:
|
||||
- option: FW_rejected_country
|
||||
value: "{{ host_country_code_found }}"
|
||||
value: "{{ cmdline_country_code }}"
|
||||
when: FW_rejected_country.stdout is defined
|
||||
|
||||
# well if there ever was a point to tell the user things are FUBAR this is it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue