new approach
This commit is contained in:
22
todo.md
22
todo.md
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user