diff options
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 + } |