# wwle3/luci-app-mentohust architecture

> Architecture diagram of the GitHub repository wwle3/luci-app-mentohust, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/wwle3/luci-app-mentohust
- Repository: https://github.com/wwle3/luci-app-mentohust

## Overview

luci-app-mentohust provides a LuCI interface for the MentoHUST 802.1x authentication client. The tree separates LuCI controller, configuration form, and status view from the packaged client, service script, and configuration files. The README documents the interface’s support for the client, but no source excerpts show how UI actions reach the service or how configuration is consumed; those internal links are therefore omitted.

Main entry points: [`luasrc/controller/mentohust.lua`](https://github.com/wwle3/luci-app-mentohust/blob/main/luasrc/controller/mentohust.lua) (LuCI controller), [`root/usr/sbin/mentohust`](https://github.com/wwle3/luci-app-mentohust/blob/main/root/usr/sbin/mentohust) (MentoHUST client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_luci["LuCI management"]
  node_controller["LuCI controller<br/>[mentohust.lua]"]
  node_config_form["Configuration form<br/>[config.lua]"]
  node_status_view["Status view<br/>[status.htm]"]
end

subgraph group_runtime["Client and configuration"]
  node_client["MentoHUST client"]
  node_service["Service script<br/>[mentohust]"]
  node_uci_config["UCI configuration"]
  node_client_config["Client configuration<br/>[mentohust.conf]"]
  node_uci_defaults["Initial defaults"]
  node_upgrade_keep["Upgrade preservation<br/>[mentohust]"]
end

node_controller -->|"supports"| node_client

click node_controller "https://github.com/wwle3/luci-app-mentohust/blob/main/luasrc/controller/mentohust.lua"
click node_config_form "https://github.com/wwle3/luci-app-mentohust/blob/main/luasrc/model/cbi/mentohust/config.lua"
click node_status_view "https://github.com/wwle3/luci-app-mentohust/blob/main/luasrc/view/mentohust/status.htm"
click node_client "https://github.com/wwle3/luci-app-mentohust/blob/main/root/usr/sbin/mentohust"
click node_service "https://github.com/wwle3/luci-app-mentohust/blob/main/root/etc/init.d/mentohust"
click node_uci_config "https://github.com/wwle3/luci-app-mentohust/blob/main/root/etc/config/mentohust"
click node_client_config "https://github.com/wwle3/luci-app-mentohust/blob/main/root/etc/mentohust.conf"
click node_uci_defaults "https://github.com/wwle3/luci-app-mentohust/blob/main/root/etc/uci-defaults/40_luci-mentohust"
click node_upgrade_keep "https://github.com/wwle3/luci-app-mentohust/blob/main/root/lib/upgrade/keep.d/mentohust"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_controller,node_config_form,node_status_view toneBlue
class node_client,node_service,node_uci_config,node_client_config,node_uci_defaults,node_upgrade_keep toneAmber
```

## Components

### LuCI management

- [LuCI controller](https://github.com/wwle3/luci-app-mentohust/blob/main/luasrc/controller/mentohust.lua): `luasrc/controller/mentohust.lua`
- [Configuration form](https://github.com/wwle3/luci-app-mentohust/blob/main/luasrc/model/cbi/mentohust/config.lua): `luasrc/model/cbi/mentohust/config.lua`
- [Status view](https://github.com/wwle3/luci-app-mentohust/blob/main/luasrc/view/mentohust/status.htm): `luasrc/view/mentohust/status.htm`

### Client and configuration

- [MentoHUST client](https://github.com/wwle3/luci-app-mentohust/blob/main/root/usr/sbin/mentohust): `root/usr/sbin/mentohust`
- [Service script](https://github.com/wwle3/luci-app-mentohust/blob/main/root/etc/init.d/mentohust): `root/etc/init.d/mentohust`
- [UCI configuration](https://github.com/wwle3/luci-app-mentohust/blob/main/root/etc/config/mentohust): `root/etc/config/mentohust`
- [Client configuration](https://github.com/wwle3/luci-app-mentohust/blob/main/root/etc/mentohust.conf): `root/etc/mentohust.conf`
- [Initial defaults](https://github.com/wwle3/luci-app-mentohust/blob/main/root/etc/uci-defaults/40_luci-mentohust): `root/etc/uci-defaults/40_luci-mentohust`
- [Upgrade preservation](https://github.com/wwle3/luci-app-mentohust/blob/main/root/lib/upgrade/keep.d/mentohust): `root/lib/upgrade/keep.d/mentohust`

## Connections

- LuCI controller → MentoHUST client: supports (evidence: `README.md`)
