]> git.proxmox.com Git - iproute2.git/blame - debian/patches/0001-Add-moo-feature.patch
buildsys: update make upload target for stretch
[iproute2.git] / debian / patches / 0001-Add-moo-feature.patch
CommitLineData
3cf71090
DM
1From: Alexander Wirt <formorer@debian.org>
2Date: Mon, 10 Jun 2013 11:47:00 +0200
3Subject: Add moo feature
4
5---
6 ip/ip.c | 15 +++++++++++++++
7 1 file changed, 15 insertions(+)
8
9--- a/ip/ip.c
10+++ b/ip/ip.c
11@@ -66,6 +66,20 @@
12 return 0;
13 }
14
15+static int do_moo(int argc, char **argv)
16+{
17+
18+fprintf(stderr,
19+"\n"
20+" _ __ ___ ___ ___\n"
21+"| '_ ` _ \\ / _ \\ / _ \\\n"
22+"| | | | | | (_) | (_) |\n"
23+"|_| |_| |_|\\___/ \\___/\n"
24+"\n\n"
25+"P.S. no real cows were harmed for this moo\n");
26+ exit(1);
27+}
28+
29 static const struct cmd {
30 const char *cmd;
31 int (*func)(int argc, char **argv);
32@@ -96,6 +110,7 @@
33 { "netns", do_netns },
34 { "netconf", do_ipnetconf },
35 { "help", do_help },
36+ { "moo", do_moo },
37 { 0 }
38 };
39