[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: editfile question
From: |
Sean Atkinson |
Subject: |
Re: editfile question |
Date: |
Thu, 03 Mar 2005 15:27:32 +0100 |
In case anybody is interested, I've managed to use cfengine's editfiles
options to conditionally add support for vnc.so to the XF86Config file:
editfiles:
{ /etc/X11/XF86Config-4
Backup "single"
BeginGroupIfNoLineMatching ".*Load[ ]+\"vnc\".*"
LocateLineMatching "Section[ ]+\"Module\".*"
InsertLine " Load \"vnc\" # automatically added by cfengine"
EndGroup
BeginGroupIfNoLineMatching ".*Option[ ]+\"passwordFile\".*"
LocateLineMatching "Section[ ]+\"Screen\".*"
InsertLine " Option \"passwordFile\" \"/root/.vnc/passwd\" #
automatically added by cfengine"
EndGroup
}
Testing this seems to work as I'd expect, so this appears preferable to
hacking any diff patches into submission.
Cheers,
Sean.
--
Sean Atkinson <sean@netproject.com>
Netproject
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: editfile question,
Sean Atkinson <=