Files
wlan-ucentral-schema/renderer/templates/unit.uc
Venkat Chimata 42e59d5524 Add system-password to the schema
With this addition, a desired password can be configured through ucentral config

Signed-off-by: Venkat Chimata <venkata@shasta.cloud>
2024-09-22 14:11:21 +02:00

23 lines
608 B
Ucode

# Basic unit configuration
{% if (unit.name): %}
set system.@system[-1].description={{ s(unit.name) }}
{% endif %}
{% if (unit.hostname): %}
set system.@system[-1].hostname={{ s(unit.hostname) }}
{% endif %}
{% if (unit.location): %}
set system.@system[-1].notes={{ s(unit.location) }}
{% endif %}
{% if (unit.timezone): %}
set system.@system[-1].timezone={{ s(unit.timezone) }}
{% endif %}
set system.@system[-1].leds_off={{ b(!unit.leds_active) }}
{%
if (unit.system_password)
shell.system_password(unit.system_password);
else
shell.password(unit.random_password);
services.set_enabled("led", true);
%}