]> git.proxmox.com Git - iproute2.git/blame - debian/patches/0001-Add-moo-feature.patch
Update to 4.15, fix /bin/ss with no header flag
[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
cd0d3ac3
WB
11@@ -69,6 +69,20 @@ static int do_help(int argc, char **argv
12 return 0;
3cf71090
DM
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);
cd0d3ac3
WB
32@@ -103,6 +117,7 @@ static const struct cmd {
33 { "vrf", do_ipvrf},
34 { "sr", do_seg6 },
3cf71090
DM
35 { "help", do_help },
36+ { "moo", do_moo },
37 { 0 }
38 };
39