Hi, Recently I've been getting to grips with cfengine, hoping to use it to manage all the configuration details for large Linux desktop deployments. As an example to understand its use, I want to apply the following diff to the X server's configuration file to add support for remote access with VNC:
--- XF86Config-4.orig 2005-02-25 19:35:01.154611824 +0100 +++ XF86Config-4 2005-02-25 19:35:14.823533832 +0100 @@ -30,6 +30,7 @@ FontPath "/usr/lib/X11/fonts/75dpi" EndSection Section "Module" + Load "vnc" Load "GLcore" Load "bitmap" Load "dbe" @@ -84,6 +85,7 @@ Option "DPMS" EndSection Section "Screen" + Option "passwordFile" "/root/.vnc/passwd" Identifier "Default Screen" Device "NVIDIA Corporation NVCrush11 [GeForce2 MX Integrated Graphics]" Monitor "Generic Monitor" However following the reference documentation I can't figure out how to achieve this with the available editfile options. It would have to consist of a search, test for the new line's existence, and conditional insertion as necessary. Does anybody have any advice on how this might be done please, or should I be looking for another solution? Cheers, Sean. -- Sean Atkinson <[EMAIL PROTECTED]> Netproject _______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine