yavdr-ansible/roles/serial-ir/templates/serial.conf.j2
Alexander Grothe 326c7d3119 Add role for serial ir receivers
TODO: test role for serial_device=ttyS0 and serial_device=ttyS1
2019-01-01 23:48:31 +01:00

8 lines
182 B
Django/Jinja

{% if serial_device == "ttyS0" %}
#COM1 equivalent, /dev/ttyS0
/dev/ttyS0 uart none
{% elif serial_device == "ttyS1" %}
#COM2 equivalent, /dev/ttyS1
/dev/ttyS1 uart none
{% endif %}