yavdr-ansible/roles/serial-ir/templates/modprobe.d/serial_ir.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

9 lines
310 B
Django/Jinja

#COM1 equivalent, /dev/ttyS0
{% if serial_device == "ttyS0" %}
options serial_ir irq=4 io=0x3f8
{% elif serial_device == "ttyS1" %}
#COM2 equivalent, /dev/ttyS1
options serial_ir irq=3 io=0x2f8
{% endif %}
install serial_ir setserial /dev/{{serial_device}} uart none; /sbin/modprobe --ignore-install serial_ir