X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmotd%2Ftemplates%2Fmotd.erb;h=37d9b4fe3d7468de6831702a48735fef0fee9898;hb=e63c8f520153204ce1bee4f4aca2b6eb0308a3f0;hp=24f810b8ee1a09784af9cc102f44b9ff47823d74;hpb=1b49f38b343a31db48dc2c0ef67e50e1d587dff0;p=mirror%2Fdsa-puppet.git diff --git a/modules/motd/templates/motd.erb b/modules/motd/templates/motd.erb index 24f810b8e..37d9b4fe3 100644 --- a/modules/motd/templates/motd.erb +++ b/modules/motd/templates/motd.erb @@ -2,21 +2,16 @@ 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