summaryrefslogtreecommitdiff
path: root/dhcp3/dhcp3-cilent.cf
blob: 4231416d1f471045acc49b1d56406710d63055ae (plain)
  1. #! /usr/bin/cfengine -qf
  2. control:
  3. OutputPrefix = ("${cf_prefix}")
  4. actionsequence = ( editfiles )
  5. EditfileSize = ( 10000 )
  6. editfiles:
  7. any::
  8. { /etc/dhcp3/dhclient-script
  9. #
  10. # Set hostname to reverse lookup of IP
  11. #
  12. WarnIfNoLineMatching "^[[:blank:]]+([A-Z]+\|)*BOUND(\|[A-Z]+)*\)"
  13. LocateLineMatching "^[[:blank:]]+([A-Z]+\|)*BOUND(\|[A-Z]+)*\)"
  14. BeginGroupIfNoLineMatching "^AllowShutdown=All"
  15. ReplaceLineWith "AllowShutdown=All"
  16. EndGroup
  17. }