I'm building a custom package of vnc and would like to ensure the xdcmp settings of GDM are enabled in the package post install script. The gdm.conf file is an ini style one, i.e.:
[section]
var=name
And the value I want to set has name clashes in different sections throughout the config file. Are there any tools that allow for easy manipulation of ini style config files from shell scripts? I'd like to sort this out in the .deb postinst script.