From 53bafb796b654d1f7206196fd97cf8ba0b08ad7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 28 Sep 2015 12:29:58 +0200 Subject: Imported Upstream version 3.0 --- dmiopt.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'dmiopt.c') diff --git a/dmiopt.c b/dmiopt.c index 46e5cda..0d142d2 100644 --- a/dmiopt.c +++ b/dmiopt.c @@ -2,7 +2,7 @@ * Command line handling of dmidecode * This file is part of the dmidecode project. * - * Copyright (C) 2005-2008 Jean Delvare + * Copyright (C) 2005-2008 Jean Delvare * * 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; -- cgit v1.2.3