diff options
author | Jonas Smedegaard <dr@jones.dk> | 2004-10-06 21:02:12 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2004-10-06 21:02:12 +0000 |
commit | dd572eae7639d05066e3d3f8fcde8988f5dbc7b1 (patch) | |
tree | 90f986bcb5f1cf21556478fe591942bce80ec666 /dhcp3/dhcp3-cilent.cf | |
parent | fa78451ebd444f11e98f81df5265e3c7415ef7fa (diff) |
Add somewhat generic dhcpd addon snippets.
Diffstat (limited to 'dhcp3/dhcp3-cilent.cf')
-rwxr-xr-x | dhcp3/dhcp3-cilent.cf | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dhcp3/dhcp3-cilent.cf b/dhcp3/dhcp3-cilent.cf new file mode 100755 index 0000000..4231416 --- /dev/null +++ b/dhcp3/dhcp3-cilent.cf @@ -0,0 +1,19 @@ +#! /usr/bin/cfengine -qf + +control: + OutputPrefix = ("${cf_prefix}") + actionsequence = ( editfiles ) + EditfileSize = ( 10000 ) + +editfiles: + any:: + { /etc/dhcp3/dhclient-script + # + # Set hostname to reverse lookup of IP + # + WarnIfNoLineMatching "^[[:blank:]]+([A-Z]+\|)*BOUND(\|[A-Z]+)*\)" + LocateLineMatching "^[[:blank:]]+([A-Z]+\|)*BOUND(\|[A-Z]+)*\)" + BeginGroupIfNoLineMatching "^AllowShutdown=All" + ReplaceLineWith "AllowShutdown=All" + EndGroup + } |