The einit
tool lets you automate the creation of code of the Einit initializing entity. This entity is the first to start when KasperskyOS is loaded. Then it starts the other entities and creates channels (connections) between them.
The einit
tool receives the init description file (init.yaml
by default) and creates a .c file containing the code of the Einit
initializing entity. Then the Einit
entity must be built using the C compiler that is provided in KasperskyOS Community Edition.
Syntax for using the einit tool:
einit -I PATH -o PATH [--help] FILE
Parameters:
FILE
Path to the init.yaml
file containing descriptions of entities and connections.
-I PATH
Path to the folder containing auxiliary files required for generating the initializing entity. By default, these files are located in the folder: /opt/KasperskyOS-Community-Edition-<version>/sysroot-x86_64-pc-kos/include
.
-o, --out-file PATH
Path to the created .c file containing the code of the initializing entity.
-h, --help
Displays the Help text.