Skip to content

1.5 Boot‐Process

Udo edited this page Aug 16, 2024 · 5 revisions

Ethos Boot

During the Ethos boot process, the operating system searches within the /scripts folder for files with the suffix .lua (or .luac if already compiled).

These are read, and the respective init handler is executed.

In the process, the UID/key, script name, type, and registered handlers are made known to the transmitter centrally.

After that, all existing folders directly under "/scripts" are opened.

There, a file "main.lua" or "main.luac" is searched for in each folder, and if present, the init handler is executed.

Further subfolders are NOT searched.

A simple syntax check of the script takes place during the boot process. If this fails, the script is not made available to the transmitter.



In this way, the transmitter has a catalog of all valid scripts at the end of the boot process and can suggest them to the user as needed.



In several forum posts, it is mentioned that Ethos would load all scripts completely, as if they were all permanently allocated in memory. This is definitely not the case.

Clone this wiki locally