]> git.proxmox.com Git - iproute2.git/blob - debian/patches/0001-Add-moo-feature.patch
bump version to 4.13.0-1
[iproute2.git] / debian / patches / 0001-Add-moo-feature.patch
1 From: Alexander Wirt <formorer@debian.org>
2 Date: Mon, 10 Jun 2013 11:47:00 +0200
3 Subject: 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 @@ -69,6 +69,20 @@ static int do_help(int argc, char **argv
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 @@ -103,6 +117,7 @@ static const struct cmd {
33 { "vrf", do_ipvrf},
34 { "sr", do_seg6 },
35 { "help", do_help },
36 + { "moo", do_moo },
37 { 0 }
38 };
39