File: moo.diff

package info (click to toggle)
iproute 20120521-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,968 kB
  • sloc: ansic: 39,902; sh: 1,774; cpp: 476; makefile: 466; yacc: 339; lex: 145; perl: 101
file content (35 lines) | stat: -rw-r--r-- 654 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
From: Alexander Wirt <formorer@debian.org>
Subject: Add moo feature
Forwarded: not-needed

--- a/ip/ip.c
+++ b/ip/ip.c
@@ -59,6 +59,20 @@
 	usage();
 }
 
+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);
@@ -84,6 +98,7 @@
 	{ "mrule",	do_multirule },
 	{ "netns",	do_netns },
 	{ "help",	do_help },
+	{ "moo",	do_moo }, 
 	{ 0 }
 };