mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +00:00
Ports: Upgrade dmidecode to version 3.3
This commit is contained in:
parent
65c27bfe52
commit
6e8f86b44b
5 changed files with 63 additions and 19 deletions
31
Ports/dmidecode/patches/dmiopt.c.patch
Normal file
31
Ports/dmidecode/patches/dmiopt.c.patch
Normal file
|
@ -0,0 +1,31 @@
|
|||
diff --git a/dmiopt.c b/dmiopt.c
|
||||
index d08288f..42f5458 100644
|
||||
--- a/dmiopt.c
|
||||
+++ b/dmiopt.c
|
||||
@@ -277,7 +277,7 @@ int parse_command_line(int argc, char * const argv[])
|
||||
{ "from-dump", required_argument, NULL, 'F' },
|
||||
{ "handle", required_argument, NULL, 'H' },
|
||||
{ "oem-string", required_argument, NULL, 'O' },
|
||||
- { "no-sysfs", no_argument, NULL, 'S' },
|
||||
+ { "no-procfs", no_argument, NULL, 'S' },
|
||||
{ "version", no_argument, NULL, 'V' },
|
||||
{ NULL, 0, NULL, 0 }
|
||||
};
|
||||
@@ -326,7 +326,7 @@ int parse_command_line(int argc, char * const argv[])
|
||||
opt.flags |= FLAG_DUMP;
|
||||
break;
|
||||
case 'S':
|
||||
- opt.flags |= FLAG_NO_SYSFS;
|
||||
+ opt.flags |= FLAG_NO_PROCFS;
|
||||
break;
|
||||
case 'V':
|
||||
opt.flags |= FLAG_VERSION;
|
||||
@@ -377,7 +377,7 @@ void print_help(void)
|
||||
" -u, --dump Do not decode the entries\n"
|
||||
" --dump-bin FILE Dump the DMI data to a binary file\n"
|
||||
" --from-dump FILE Read the DMI data from a binary file\n"
|
||||
- " --no-sysfs Do not attempt to read DMI data from sysfs files\n"
|
||||
+ " --no-procfs Do not attempt to read DMI data from procfs files\n"
|
||||
" --oem-string N Only display the value of the given OEM string\n"
|
||||
" -V, --version Display the version and exit\n";
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue