mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
grep & stdout
This commit is contained in:
parent
eb21c8654a
commit
9991273391
1 changed files with 3 additions and 3 deletions
|
@ -269,8 +269,8 @@
|
||||||
register: FW_rejected_country
|
register: FW_rejected_country
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
|
|
||||||
- name: Detect country code passed from cmdline
|
- name: Detect country code passed from cmdline in dmesg
|
||||||
shell: dmesg | awk -F cfg80211.ieee80211_regdom= '{print $2}'
|
shell: dmesg | grep ieee80211 | awk -F cfg80211.ieee80211_regdom= '{print $2}'
|
||||||
register: cmdline_country_code
|
register: cmdline_country_code
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
|
|
||||||
|
@ -356,7 +356,7 @@
|
||||||
value: "{{ item.value | string }}"
|
value: "{{ item.value | string }}"
|
||||||
with_items:
|
with_items:
|
||||||
- option: FW_rejected_country
|
- option: FW_rejected_country
|
||||||
value: "{{ cmdline_country_code }}"
|
value: "{{ cmdline_country_code.stdout }}"
|
||||||
when: FW_rejected_country.stdout is defined
|
when: FW_rejected_country.stdout is defined
|
||||||
|
|
||||||
# well if there ever was a point to tell the user things are FUBAR this is it.
|
# well if there ever was a point to tell the user things are FUBAR this is it.
|
||||||
|
|
Loading…
Reference in a new issue