Commit 9fc56974 authored by Andreas Henriksson's avatar Andreas Henriksson Committed by Stephen Hemminger

iproute2: trivial fix of ip link syntax in manpage

Reported by Ivan Vilata i Balaguer <ivan@selidor.net>
found that the description of the `ip link add` command in the manpage
is outdated regarding the compulsory `link DEVICE` option.
For instance, `ip  link help` says:
    Usage: ip link add [link DEV] [ name ] NAME
     ...
But the manpage still says:
     ip link add link DEVICE [ name ] NAME

(Trying to provide a `link` option e.g. under an LXC container can frustrate
 the creation of dummy devices which don't need an actual device.)

The syntax of the "ip link help" output was fixed in commit
"iproute2: Fix usage and man page for 'ip link'" (a22e9295).
This updates the manpage to mark "link DEVICE" as an optional
argument there as well.

  http://bugs.debian.org/673171Signed-off-by: default avatarAndreas Henriksson <andreas@fatal.se>
parent e6232cf6
...@@ -23,7 +23,9 @@ ip-link \- network device configuration ...@@ -23,7 +23,9 @@ ip-link \- network device configuration
\fB\-o\fR[\fIneline\fR] } \fB\-o\fR[\fIneline\fR] }
.ti -8 .ti -8
.BI "ip link add link " DEVICE .BI "ip link add"
.RB "[ " link
.IR DEVICE " ]"
.RB "[ " name " ]" .RB "[ " name " ]"
.I NAME .I NAME
.br .br
......
...@@ -23,7 +23,9 @@ ip-link \- network device configuration ...@@ -23,7 +23,9 @@ ip-link \- network device configuration
\fB\-o\fR[\fIneline\fR] } \fB\-o\fR[\fIneline\fR] }
.ti -8 .ti -8
.BI "ip link add link " DEVICE .BI "ip link add"
.RB "[ " link
.IR DEVICE " ]"
.RB "[ " name " ]" .RB "[ " name " ]"
.I NAME .I NAME
.br .br
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment