summaryrefslogtreecommitdiff
path: root/dmiopt.c
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2015-04-21 07:38:05 +0000
committerJean Delvare <jdelvare@suse.de>2015-04-21 07:38:05 +0000
commitb3343651bcf372a6ac143a8080dd7239599187f3 (patch)
tree99605627d754d46a4fac13fcbb4302f3b9dcc4a6 /dmiopt.c
parentb0f6daeda7239822932f932acf0b4f4614ec0d98 (diff)
downloaddmidecode-git-b3343651bcf372a6ac143a8080dd7239599187f3.tar.gz
dmidecode: Add --no-sysfs option to disable use of sysfs
This option forces any SMBIOS information in sysfs to be ignored, resulting in dmidecode using /dev/mem for SMBIOS access. This is likely most useful for debugging. Contributed by Roy Franz.
Diffstat (limited to 'dmiopt.c')
-rw-r--r--dmiopt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dmiopt.c b/dmiopt.c
index 1c56a0e..c86e7dd 100644
--- a/dmiopt.c
+++ b/dmiopt.c
@@ -225,6 +225,7 @@ int parse_command_line(int argc, char * const argv[])
{ "dump", no_argument, NULL, 'u' },
{ "dump-bin", required_argument, NULL, 'B' },
{ "from-dump", required_argument, NULL, 'F' },
+ { "no-sysfs", no_argument, NULL, 'S' },
{ "version", no_argument, NULL, 'V' },
{ 0, 0, 0, 0 }
};
@@ -262,6 +263,9 @@ int parse_command_line(int argc, char * const argv[])
case 'u':
opt.flags |= FLAG_DUMP;
break;
+ case 'S':
+ opt.flags |= FLAG_NO_SYSFS;
+ break;
case 'V':
opt.flags |= FLAG_VERSION;
break;