summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am1
-rw-r--r--scripts/limericks.py51
-rw-r--r--templates/show/version/added/node.def2
-rw-r--r--templates/show/version/all/node.def2
-rw-r--r--templates/show/version/deleted/node.def2
-rw-r--r--templates/show/version/downgraded/node.def2
-rw-r--r--templates/show/version/funny/node.def5
-rw-r--r--templates/show/version/node.def2
-rw-r--r--templates/show/version/upgraded/node.def2
9 files changed, 63 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index 410c419..e736419 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -52,6 +52,7 @@ bin_SCRIPTS += scripts/vyatta-monitor-check-rule-log
bin_SCRIPTS += scripts/vyos-show-ram.sh
bin_SCRIPTS += scripts/vyos-strip-config.pl
bin_SCRIPTS += scripts/maya-date.py
+bin_SCRIPTS += scripts/limericks.py
sbin_SCRIPTS = scripts/dhcpv6-client-show-leases.pl
sbin_SCRIPTS += scripts/vyatta-image-tools.pl
diff --git a/scripts/limericks.py b/scripts/limericks.py
new file mode 100644
index 0000000..acb1a74
--- /dev/null
+++ b/scripts/limericks.py
@@ -0,0 +1,51 @@
+#!/usr/bin/env python
+
+import random
+
+limericks = [
+
+"""
+A programmer who's name was Searle
+Once wrote a long program in Perl.
+Despite very few quirks
+No one got how it works,
+Not even the interpreter.
+""",
+
+"""
+There was a young lady of Maine
+Who set up IPsec VPN.
+Problems didn't arise
+'til other vendors' device
+had to add she to that VPN.
+""",
+
+"""
+One day a programmer from York
+started his own Vyatta fork.
+Though he was a huge geek,
+it still took him a week
+to get the damn build scripts to work.
+""",
+
+"""
+A network admin from Hong Kong
+knew MPPE cipher's not strong.
+But he was behind NAT,
+so he put up we that,
+sad network admin from Hong Kong.
+""",
+
+"""
+A network admin named Drake
+greeted friends with a three-way handshake
+and refused to proceed
+if they didn't complete it,
+that standards-compliant guy Drake.
+"""
+
+]
+
+l = limericks[random.randint(0, len(limericks) - 1)]
+
+print(l)
diff --git a/templates/show/version/added/node.def b/templates/show/version/added/node.def
index b17ca68..2381b74 100644
--- a/templates/show/version/added/node.def
+++ b/templates/show/version/added/node.def
@@ -1,2 +1,2 @@
-help: Show Vyatta version information plus added packages
+help: Show VyOS version information plus added packages
run: ${vyatta_bindir}/vyatta-show-version added
diff --git a/templates/show/version/all/node.def b/templates/show/version/all/node.def
index 76fff72..5b60609 100644
--- a/templates/show/version/all/node.def
+++ b/templates/show/version/all/node.def
@@ -1,2 +1,2 @@
-help: Show Vyatta version information plus all packages changes
+help: Show VyOS version information plus all packages changes
run: ${vyatta_bindir}/vyatta-show-version all
diff --git a/templates/show/version/deleted/node.def b/templates/show/version/deleted/node.def
index 4567031..d328cf6 100644
--- a/templates/show/version/deleted/node.def
+++ b/templates/show/version/deleted/node.def
@@ -1,2 +1,2 @@
-help: Show Vyatta version information plus deleted packages
+help: Show VyOS version information plus deleted packages
run: ${vyatta_bindir}/vyatta-show-version deleted
diff --git a/templates/show/version/downgraded/node.def b/templates/show/version/downgraded/node.def
index 4948f1b..250b048 100644
--- a/templates/show/version/downgraded/node.def
+++ b/templates/show/version/downgraded/node.def
@@ -1,2 +1,2 @@
-help: Show Vyatta version information plus downgraded packages
+help: Show VyOS version information plus downgraded packages
run: ${vyatta_bindir}/vyatta-show-version downgraded
diff --git a/templates/show/version/funny/node.def b/templates/show/version/funny/node.def
new file mode 100644
index 0000000..cb62c96
--- /dev/null
+++ b/templates/show/version/funny/node.def
@@ -0,0 +1,5 @@
+help: Show VyOS version information plus a funny poem
+run:
+ ${vyatta_bindir}/vyatta-show-version
+ ${vyatta_bindir}/limericks.py
+
diff --git a/templates/show/version/node.def b/templates/show/version/node.def
index 272589e..4237e5d 100644
--- a/templates/show/version/node.def
+++ b/templates/show/version/node.def
@@ -1,2 +1,2 @@
-help: Show Vyatta version information
+help: Show VyOS version information
run: ${vyatta_bindir}/vyatta-show-version
diff --git a/templates/show/version/upgraded/node.def b/templates/show/version/upgraded/node.def
index 1826ceb..b693c23 100644
--- a/templates/show/version/upgraded/node.def
+++ b/templates/show/version/upgraded/node.def
@@ -1,2 +1,2 @@
-help: Show Vyatta version information plus upgraded packages
+help: Show VyOS version information plus upgraded packages
run: ${vyatta_bindir}/vyatta-show-version upgraded