I am looking to make an install script for hifi-berry and a few other pieces of hardware. When config.txt didn't have sections, there was no risk of adding a line in the "wrong place".
With the sections (which seem like a really nice feature), adding lines to the right place strikes me as quite error prone.
Is anyone aware of an editor (before I write my own) which is capable of understanding enough structure of the config.txt to be able to add / remove / change values in the correct section(s)
sudo config_edit --platform=pi3 --EDID=asus_monitor --add 'dtoverlay=asus_touch_screen' sudo config_edit --add 'dtoverlay=microphone' # add to un-filtered section