2018-08-27 06:35:11 -03:00
|
|
|
{# jinja template to generate the serial port rc.uart_port script. #}
|
|
|
|
|
|
|
|
# serial port script generated with generate_serial_config.py
|
|
|
|
|
|
|
|
set SERIAL_DEV none
|
|
|
|
{% for serial_device in serial_devices -%}
|
2019-02-24 11:53:45 -04:00
|
|
|
if param compare "$PRT" {{ serial_device.index }}; then
|
|
|
|
if [ "x$PRT_{{ serial_device.tag }}_" = "x" ]; then
|
2018-08-27 06:35:11 -03:00
|
|
|
set SERIAL_DEV {{ serial_device.device }}
|
|
|
|
set BAUD_PARAM SER_{{ serial_device.tag }}_BAUD
|
|
|
|
set PRT_{{ serial_device.tag }}_ 1
|
|
|
|
{% if not constrained_flash -%}
|
|
|
|
else
|
|
|
|
echo "Conflicting config for {{ serial_device.device }}"
|
|
|
|
{% endif -%}
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
{% endfor %}
|
2021-04-01 04:39:57 -03:00
|
|
|
|
2021-01-31 09:36:27 -04:00
|
|
|
{% for config in ethernet_configuration -%}
|
|
|
|
if param compare "$PRT" {{ config.index }}; then
|
|
|
|
set SERIAL_DEV ethernet
|
|
|
|
fi
|
|
|
|
{% endfor %}
|