Changeset 10568 in genesis
- Timestamp:
- Apr 24, 2012, 7:39:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r10567 r10568 709 709 def generate_motd(datadump): 710 710 """ Generate configuration file '/etc/motd' """ 711 output = """\711 output = Template("""\ 712 712 FreeBSD 9.0-RELEASE (kernel.wleiden) #0 r230587: Sun Jan 29 17:09:57 CET 2012 713 713 714 WWW: %(autogen_fqdn)s - http://www.wirelessleiden.nl 715 Loc: %(location)s 716 714 WWW: {{ autogen_fqdn }} - http://www.wirelessleiden.nl 715 Loc: {{ location }} 716 717 Services: 718 {% if board == "ALIX2" -%} 719 - Core Node 720 {% else -%} 721 - Hulp Node 722 {% endif -%} 723 {% if service_proxy -%} 724 - Normal Proxy 725 {% endif -%} 726 {% if service_ileiden -%} 727 - iLeiden Proxy 728 {% endif %} 717 729 Interlinks: 718 """ % datadump730 """).render(datadump) 719 731 720 732 # XXX: This is a hacky way to get the required data
Note:
See TracChangeset
for help on using the changeset viewer.