diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-09-28 12:29:58 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-09-28 12:29:58 +0200 |
commit | 53bafb796b654d1f7206196fd97cf8ba0b08ad7a (patch) | |
tree | ce708d62f28f18f15ccecc74cac9649cd846e203 /dmiopt.c | |
parent | 723024faf087b48ba8b93db6821bb17f52751120 (diff) |
Imported Upstream version 3.0upstream/3.0
Diffstat (limited to 'dmiopt.c')
-rw-r--r-- | dmiopt.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -2,7 +2,7 @@ * Command line handling of dmidecode * This file is part of the dmidecode project. * - * Copyright (C) 2005-2008 Jean Delvare <khali@linux-fr.org> + * Copyright (C) 2005-2008 Jean Delvare <jdelvare@suse.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -225,8 +225,9 @@ 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 } + { NULL, 0, NULL, 0 } }; while ((option = getopt_long(argc, argv, optstring, longopts, NULL)) != -1) @@ -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; |