Process fragments from a *.d type of directory / drop-in files / weston.ini.d
Similarly to what we have in systemd, or some sort of conf.d/ directory from apache, where we have multiple virtual sites, we can have a weston.ini.d/ directory from which we can assemble a fully ini configuration file.
For instance, having the following directory:
weston.ini.d/
weston.ini.d/core.cfg
weston.ini.d/output_virtual.cfg
weston.ini.d/remote.cfg
weston.ini.d/hdmi.cfg
And their corresponding files:
- weston.ini.d/core.cfg:
[core]
modules=systemd-notify.so
idle-time=0
- weston.ini.d/output_virtual.cfg
[output]
name=Virtual-1
mode=1280x1024
- weston.ini.d/remote.cfg
[remote-output]
name=remote-1
mode=640x720@30
host=192.168.100.49
port=9991
- weston.ini.d/hdmi.cfg
[output]
name=HDMI-A-1
mode=1920x1200
This seems to be quite useful to have in systems (yocto/OE and the like) where we need to mix various configurations and generate these configure fragments as such.
Edited by Marius Vlad