1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 12:12:12 +00:00

grep & stdout

This commit is contained in:
Jerry Vonau 2025-01-23 12:36:55 -06:00
parent eb21c8654a
commit 9991273391

View file

@ -269,8 +269,8 @@
register: FW_rejected_country
ignore_errors: True
- name: Detect country code passed from cmdline
shell: dmesg | awk -F cfg80211.ieee80211_regdom= '{print $2}'
- name: Detect country code passed from cmdline in dmesg
shell: dmesg | grep ieee80211 | awk -F cfg80211.ieee80211_regdom= '{print $2}'
register: cmdline_country_code
ignore_errors: True
@ -356,7 +356,7 @@
value: "{{ item.value | string }}"
with_items:
- option: FW_rejected_country
value: "{{ cmdline_country_code }}"
value: "{{ cmdline_country_code.stdout }}"
when: FW_rejected_country.stdout is defined
# well if there ever was a point to tell the user things are FUBAR this is it.