#! /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
	}