# EPICS IOC Startup Script generated by https://github.com/epics-containers/ibek

cd "/repos/epics/ioc"

{% if env_var_elements %}
{{ env_var_elements}}
{% endif -%}

dbLoadDatabase "dbd/ioc.dbd"
ioc_registerRecordDeviceDriver(pdbbase)

{{ script_elements }}

{%- if pre_ioc_init_elements %}
{{ pre_ioc_init_elements }}
{% endif %}

dbLoadRecords("/tmp/ioc.db")
iocInit()

{% if post_ioc_init_elements %}
{{ post_ioc_init_elements }}
{% endif %}