projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix type, need coffee
[mirror/dsa-puppet.git]
/
modules
/
motd
/
templates
/
motd.erb
diff --git
a/modules/motd/templates/motd.erb
b/modules/motd/templates/motd.erb
index
24f810b
..
37d9b4f
100644
(file)
--- 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.
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 = ''
if nodeinfo.has_key?('nameinfo')
- purp +=
nodeinfo['nameinfo']
+ "\n\n"
+ purp +=
wrap(nodeinfo['nameinfo'])
+ "\n\n"
end
purp += 'Welcome to ' + fqdn
end
purp += 'Welcome to ' + fqdn