##################################################################
#
# 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)"
        EmptyEntireFilePlease
        InsertFile "$(masterfile)"
        PrependIfNoSuchLine "This system is running $(class):$(arch)"
      EndGroup
      }

   nexus::

      { /etc/motd

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

 #####
 #
 # BEGIN cf.motd
 #
 #####



