From 295f013092c61d1684d6c62f68ef9a929276f953 Mon Sep 17 00:00:00 2001 From: Jiri Skala Date: Wed, 9 Nov 2011 08:35:16 +0100 Subject: [PATCH] updated lsmopts patch --- lsvpd-1.6.11-lsmopts.patch | 50 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/lsvpd-1.6.11-lsmopts.patch b/lsvpd-1.6.11-lsmopts.patch index 67a6b0b..fda045c 100644 --- a/lsvpd-1.6.11-lsmopts.patch +++ b/lsvpd-1.6.11-lsmopts.patch @@ -1,5 +1,33 @@ ---- lsvpd-1.6.8.org/src/output/lsmcode.cpp 2011-09-08 14:36:37.000000000 -0400 -+++ lsvpd-1.6.8/src/output/lsmcode.cpp 2011-09-08 14:42:24.000000000 -0400 +diff -up lsvpd-1.6.11/docs/lsmcode.8.lsmopts lsvpd-1.6.11/docs/lsmcode.8 +--- lsvpd-1.6.11/docs/lsmcode.8.lsmopts 2011-11-09 08:13:41.602999977 +0100 ++++ lsvpd-1.6.11/docs/lsmcode.8 2011-11-09 08:15:44.169000483 +0100 +@@ -24,7 +24,7 @@ lsmcode \- list microcode and firmware l + .ad l + .hy 0 + .HP 8 +-\fBlsmcode\fR [\fB\-A\fR | \fB\-\-All\fR | \fB\-d\fR | \fB\-\-device=\fR] [\fB\-r\fR | \fB\-\-tabular\fR | \fB\-c\fR | \fB\-\-no\-menus\fR] [\fB\-p\fR | \fB\-\-path=\fR | \fB\-z\fR | \fB\-\-zip=\fR] [\fB\-h\fR | \fB\-\-help\fR] ++\fBlsmcode\fR [\fB\-A\fR | \fB\-\-All\fR | \fB\-d\fR | \fB\-\-device=\fR] [\fB\-p\fR | \fB\-\-path=\fR | \fB\-z\fR | \fB\-\-zip=\fR] [\fB\-h\fR | \fB\-\-help\fR] + .ad + .hy + +@@ -50,14 +50,6 @@ Display information for all supported ha + Only show configuration information for the component with the given \fIname\fR\&. + + .TP +-\-r|\-\-tabluar +-Display information in a tabular format\&. Overrides \fI\-c\fR\&. +- +-.TP +-\-c|\-\-no\-menus +-Display information without using menus\&. This is only included for compatibility with calling software that expects to be able to use the same options as for the AIX version, since interactive menus are not supported in this version\&. +- +-.TP + \-p|\-\-path= + Use as the hardware inventory database, rather then the default file\&. Note the supplied filename must include a full path\&. (\fI/var/lib/lsvpd/db\fR)\&. + +diff -up lsvpd-1.6.11/src/output/lsmcode.cpp.lsmopts lsvpd-1.6.11/src/output/lsmcode.cpp +--- lsvpd-1.6.11/src/output/lsmcode.cpp.lsmopts 2010-07-02 20:54:08.000000000 +0200 ++++ lsvpd-1.6.11/src/output/lsmcode.cpp 2011-11-09 08:07:18.581000751 +0100 @@ -66,8 +66,6 @@ void printUsage( ) cout << " --help, -h print this usage message" << endl; cout << " --debug, -D print extra information about devices (sysfs locations, etc)" << endl; @@ -18,3 +46,21 @@ { "All", 0, 0, 'A' }, { "device", 1, 0, 'd' }, { "path", 1, 0, 'p' }, +@@ -268,17 +264,10 @@ int main( int argc, char** argv ) + { + switch( getopt_long( argc, argv, opts, longOpts, &index ) ) + { +- case 'c': +- break; +- + case 'v': + printVersion( ); + return 0; + +- case 'r': +- tabular = true; +- break; +- + case 'A': + all = true; + tabular = true;