File: 0001-Add-moo-feature.patch

package info (click to toggle)
iproute2 4.9.0-1+deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,848 kB
  • sloc: ansic: 69,819; sh: 2,168; cpp: 633; makefile: 629; yacc: 390; lex: 145; perl: 101
file content (39 lines) | stat: -rw-r--r-- 745 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From: Alexander Wirt <formorer@debian.org>
Date: Mon, 10 Jun 2013 11:47:00 +0200
Subject: Add moo feature

---
 ip/ip.c |   15 +++++++++++++++
 1 file changed, 15 insertions(+)

--- a/ip/ip.c
+++ b/ip/ip.c
@@ -68,6 +68,20 @@
 	return 0;
 }
 
+static int do_moo(int argc, char **argv)
+{
+	
+fprintf(stderr,
+"\n"
+" _ __ ___   ___   ___\n"
+"| '_ ` _ \\ / _ \\ / _ \\\n"
+"| | | | | | (_) | (_) |\n"
+"|_| |_| |_|\\___/ \\___/\n"
+"\n\n"
+"P.S. no real cows were harmed for this moo\n");
+	exit(1);
+}
+                       
 static const struct cmd {
 	const char *cmd;
 	int (*func)(int argc, char **argv);
@@ -98,6 +112,7 @@
 	{ "netns",	do_netns },
 	{ "netconf",	do_ipnetconf },
 	{ "help",	do_help },
+	{ "moo",	do_moo }, 
 	{ 0 }
 };