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.
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.