18 lines
770 B
Diff
18 lines
770 B
Diff
Patch by Robert Scheck <robert@fedoraproject.org> for ethtool >= 6, which removes
|
|
the bogus -h/--help usage stating, that DEVNAME is required for help. For further
|
|
information, please have a look to Red Hat Bugzilla ID #472038.
|
|
|
|
--- ethtool-6/ethtool.c 2009-03-07 21:10:41.000000000 +0100
|
|
+++ ethtool-6/ethtool.c.help_usage 2009-03-07 21:19:40.000000000 +0100
|
|
@@ -213,8 +213,9 @@
|
|
"Usage:\n"
|
|
"ethtool DEVNAME\tDisplay standard information about device\n");
|
|
for (i = 0; args[i].srt; i++) {
|
|
- fprintf(stdout, " ethtool %s|%s DEVNAME\t%s\n%s",
|
|
+ fprintf(stdout, " ethtool %s|%s %s\t%s\n%s",
|
|
args[i].srt, args[i].lng,
|
|
+ strstr(args[i].srt, "-h") ? "\t" : "DEVNAME",
|
|
args[i].help,
|
|
args[i].opthelp ? args[i].opthelp : "");
|
|
}
|