Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 1fa1ab9c1e18d024f8d64e50842dbb6d > files > 22

cfengine-1.6.5-1mdk.ppc.rpm

##################################################################
#
# cf.motd
#
# This file is used to set the message of the day file on
# each host
#
##################################################################
 
 #####
 #
 # BEGIN cf.motd
 #
 #####

control:

   #
   # This points to the file containing general text
   #

   masterfile = ( /iu/nexus/local/iu/etc/motd-master )
   addendum   = ( /iu/nexus/local/iu/etc/motd-nexus  )

editfiles:

      { /etc/motd

      BeginGroupIfFileIsNewer "$(masterfile)"
        AutoCreate
#        IncrementPointer "1"
        DeleteLinesAfterThisMatching ".*"
        InsertFile "$(masterfile)"
      EndGroup
      }

   NOTnexus::

      { /etc/motd

      BeginGroupIfNoLineContaining "connecting"
        InsertFile "$(addendum)"      
      EndGroup
      }

 #####
 #
 # EGIN cf.motd
 #
 #####