X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fmotd%2Ftemplates%2Fmotd.erb;h=37d9b4fe3d7468de6831702a48735fef0fee9898;hb=04283cf24526fc3d66ec4da26991552d2d6391bb;hp=0d7b4b7912fc030634430e0854fa1944f50f2bdb;hpb=5a85882ef9eba70fda5f58c97cc5e9c30cb1ec2e;p=mirror%2Fdsa-puppet.git diff --git a/modules/motd/templates/motd.erb b/modules/motd/templates/motd.erb index 0d7b4b791..37d9b4fe3 100644 --- a/modules/motd/templates/motd.erb +++ b/modules/motd/templates/motd.erb @@ -1,21 +1,17 @@ + This device is for authorized users only. All traffic on this device is monitored and will be used as evidence for prosecutions. -** IMPORTANT WARNING ** - -Please read: - -http://lists.debian.org/debian-devel-announce/2003/debian-devel-announce-200312/msg00001.html - -before doing anything on these machines - especially the "What to do -when you can login" section. - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% <%= +def wrap(s, width=78) + s.gsub(/(.{1,#{width}})(\s+|\Z)/, "\\1\n") +end + purp = '' if nodeinfo.has_key?('nameinfo') - purp += nodeinfo['nameinfo'] + "\n\n" + purp += wrap(nodeinfo['nameinfo']) + "\n\n" end purp += 'Welcome to ' + fqdn @@ -55,3 +51,4 @@ purp -%> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +