summaryrefslogtreecommitdiff
path: root/bin
diff options
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dmitest5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/dmitest b/bin/dmitest
index aaaf9d4..3aa2b86 100755
--- a/bin/dmitest
+++ b/bin/dmitest
@@ -48,9 +48,6 @@ import sys
from argparse import ArgumentParser
-# Command to retrieve DMI information
-COMMAND = "dmidecode"
-
def find_in_section(stream, section, label, strings, find_empty):
"""Search for a set of strings on a line in the output.
@@ -241,6 +238,8 @@ def main():
"just the CPU validity test")
args = parser.parse_args()
+ # Command to retrieve DMI information
+ COMMAND = "dmidecode"
try:
if args.dmifile:
print("Reading " + args.dmifile + " as DMI data")