Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


[split] Maintaining config.txt
#15
Hi Tim

The first config.txt update could possibly be managed by a script. It could scan the contents of 'config.txt.moode' and look for corresponding 'param=val', 'dtparam=param=val' (any others? [EDIT: I see it is possible to have a line like 'dtoverlay=lirc-rpi,gpio_out_pin=16,gpio_in_pin=17,gpio_in_pull=down', which may complicate things, but there may be a utility to help process the files]) in config.txt. If a match is found then the corresponding values could be compared: if they are the same then the line is deleted from config.txt, if they are different then the line is kept as an override in config.txt. Maybe some particular setting combinations could also be detected and handled. (I could help with the script.)

If there was going to be an mpd_oled settings include file it would probably be better to just have a single general user settings include file (which would be the first of the two options from earlier) as, for example, possible mpd_oled settings like the I2C bus speed can affect other I2C devices being used, and vice versa.

Adrian.

P.S. If you decide to split this off into a fresh topic I will follow up there.
Reply


Messages In This Thread
[split] Maintaining config.txt - by adrii - 05-28-2021, 05:09 PM
RE: [split] Maintaining config.txt - by adrii - 05-31-2021, 02:29 PM
RE: [split] Maintaining config.txt - by adrii - 05-31-2021, 04:24 PM
RE: Official moOde 7.2.1 support thread - by adrii - 05-31-2021, 09:50 AM

Forum Jump: