new approach

This commit is contained in:
root
2023-04-18 13:41:50 +02:00
parent 002116e26a
commit 7fd9ca7edd
11 changed files with 242 additions and 36 deletions

22
todo.md
View File

@@ -70,6 +70,7 @@
* create menu sections: (maybe a kind of hook for plugin-types?)
* put plugins into sections
* types: livesystem, rescue, tools, installer, etc.
* priority: sort stanzas
### ./plugins
* plugin contains all needed files
@@ -82,7 +83,28 @@
* depends: nfs, samba, etc.
* plugin specific variables and settings
# Central config file approach
a main script with a conf.d/ directory. config files are sorted by numbers
and special names: menu_20_pxelinux.conf, service_10_nfs.conf, plugin_30_knoppix.conf
each .conf file contains the needed variables
the main script can select files by name (menu,service,plugin) and sort them by number
for the desired lineup.
menu* files build the menu and processes all plugin* files to fill the menu
### File structure
* main.sh
* ./conf.d/
* menu_10_default.conf
* service_10_tftp.conf
* plugin_10_knoppix.conf
* plugin_20_rescuezilla.conf
### menu*.conf
* find all enabled plugins and read them in a sorted array