|
|
247641 |
From b02989fe9544311179cd9b333f9d9e450410c6bb Mon Sep 17 00:00:00 2001
|
|
|
247641 |
From: =?UTF-8?q?V=C3=A1clav=20Pavl=C3=ADn?= <vpavlin@redhat.com>
|
|
|
247641 |
Date: Tue, 9 Apr 2013 14:25:14 +0200
|
|
|
247641 |
Subject: [PATCH] Update help and man to cover all possible arguments
|
|
|
247641 |
|
|
|
247641 |
---
|
|
|
247641 |
biosdevname.1 | 8 ++++----
|
|
|
247641 |
src/bios_dev_name.c | 12 ++++++------
|
|
|
247641 |
2 files changed, 10 insertions(+), 10 deletions(-)
|
|
|
247641 |
|
|
|
247641 |
diff --git a/biosdevname.1 b/biosdevname.1
|
|
|
247641 |
index 7067a56..22a53bd 100644
|
|
|
247641 |
--- a/biosdevname.1
|
|
|
247641 |
+++ b/biosdevname.1
|
|
|
247641 |
@@ -31,16 +31,16 @@ Treat [args] as ethernet devs
|
|
|
247641 |
.B \-d, \-\-debug
|
|
|
247641 |
Enable debugging
|
|
|
247641 |
.TP
|
|
|
247641 |
-.B \-\-policy \fI[physical|all_ethN]
|
|
|
247641 |
+.B \-p, \-\-policy \fI[physical|all_ethN]
|
|
|
247641 |
.TP
|
|
|
247641 |
-.B \-\-prefix \fI[string]
|
|
|
247641 |
+.B \-P, \-\-prefix \fI[string]
|
|
|
247641 |
string use for embedded NICs in the physical policy (default=em)
|
|
|
247641 |
.TP
|
|
|
247641 |
-.B \-\-nopirq
|
|
|
247641 |
+.B \-x, \-\-nopirq
|
|
|
247641 |
Do not use $PIR table for mapping PCI device to slot. Some BIOS have
|
|
|
247641 |
incorrect values.
|
|
|
247641 |
.TP
|
|
|
247641 |
-.B \-\-smbios \fI[x.y]
|
|
|
247641 |
+.B \-s, \-\-smbios \fI[x.y]
|
|
|
247641 |
Require minimum SMBIOS version x.y
|
|
|
247641 |
.SH POLICIES
|
|
|
247641 |
.br
|
|
|
247641 |
diff --git a/src/bios_dev_name.c b/src/bios_dev_name.c
|
|
|
247641 |
index 6084d28..5001f85 100644
|
|
|
247641 |
--- a/src/bios_dev_name.c
|
|
|
247641 |
+++ b/src/bios_dev_name.c
|
|
|
247641 |
@@ -25,11 +25,11 @@ static void usage(void)
|
|
|
247641 |
fprintf(stderr, " Options:\n");
|
|
|
247641 |
fprintf(stderr, " -i or --interface treat [args] as ethernet devs\n");
|
|
|
247641 |
fprintf(stderr, " -d or --debug enable debugging\n");
|
|
|
247641 |
- fprintf(stderr, " --policy [physical | all_ethN ]\n");
|
|
|
247641 |
- fprintf(stderr, " --prefix [string] string use for embedded NICs (default='em')\n");
|
|
|
247641 |
- fprintf(stderr, " --smbios [x.y] Require SMBIOS x.y or greater\n");
|
|
|
247641 |
- fprintf(stderr, " --nopirq Don't use $PIR table for slot numbers\n");
|
|
|
247641 |
- fprintf(stderr, " --version Show biosdevname version\n");
|
|
|
247641 |
+ fprintf(stderr, " -p or --policy [physical | all_ethN ]\n");
|
|
|
247641 |
+ fprintf(stderr, " -P or --prefix [string] string use for embedded NICs (default='em')\n");
|
|
|
247641 |
+ fprintf(stderr, " -s or --smbios [x.y] Require SMBIOS x.y or greater\n");
|
|
|
247641 |
+ fprintf(stderr, " -x or --nopirq Don't use $PIR table for slot numbers\n");
|
|
|
247641 |
+ fprintf(stderr, " -v or --version Show biosdevname version\n");
|
|
|
247641 |
fprintf(stderr, " Example: biosdevname -i eth0\n");
|
|
|
247641 |
fprintf(stderr, " returns: em1\n");
|
|
|
247641 |
fprintf(stderr, " when eth0 is an embedded NIC with label '1' on the chassis.\n");
|
|
|
247641 |
@@ -68,7 +68,7 @@ parse_opts(int argc, char **argv)
|
|
|
247641 |
{0, 0, 0, 0}
|
|
|
247641 |
};
|
|
|
247641 |
c = getopt_long(argc, argv,
|
|
|
247641 |
- "dinp:",
|
|
|
247641 |
+ "dip:",
|
|
|
247641 |
long_options, &option_index);
|
|
|
247641 |
if (c == -1)
|
|
|
247641 |
break;
|
|
|
247641 |
--
|
|
|
247641 |
1.8.1.4
|
|
|
247641 |
|