#! /usr/bin/cfengine

control:
   OutputPrefix = ("cfengine")
   actionsequence = ( editfiles )
   EditFileSize = ( 30000 )

editfiles:

# add an account so everybody can shutdown the notebook
# this account has no password!
   NOTEBOOK::
	{ ${target}/etc/passwd
	  AppendIfNoSuchLine "poweroff::0:0:poweroff account:/tmp:/sbin/poweroff"
	}

   CS_KOELN::

	# enable remote connect to the Xserver
	{ ${target}/etc/X11/xinit/xserverrc
	  ReplaceAll "-nolisten tcp" With " "
	}

	# a2ps write to stdout
	{ ${target}/etc/a2ps-site.cfg
	  AppendIfNoSuchLine "Options: --borders=no --output=-"
	}
	# insert some important hosts
	{ ${target}/etc/hosts
	  AppendIfNoSuchLine "134.95.9.10     rubens"
	}

	{ ${target}/etc/ssh/sshd_config
	  ReplaceAll "X11Forwarding no"
	        With "X11Forwarding yes"
	}
