Skip to content

Commit d70d5e6

Browse files
fabledjdelvare
authored andcommitted
dmidecode: Adding system-sku-number support to -s option
Allow extracting the System SKU number directly via the -s option. [JD: Update the man page accordingly.] This fixes bug #58715: https://savannah.nongnu.org/bugs/?58715 Signed-off-by: Timo Teräs <[email protected]> Signed-off-by: Jean Delvare <[email protected]>
1 parent 5b3c8e9 commit d70d5e6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dmiopt.c

+1
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ static const struct string_keyword opt_string_keyword[] = {
158158
{ "system-version", 1, 0x06 },
159159
{ "system-serial-number", 1, 0x07 },
160160
{ "system-uuid", 1, 0x08 }, /* dmi_system_uuid() */
161+
{ "system-sku-number", 1, 0x19 },
161162
{ "system-family", 1, 0x1a },
162163
{ "baseboard-manufacturer", 2, 0x04 },
163164
{ "baseboard-product-name", 2, 0x05 },

man/dmidecode.8

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Only display the value of the \s-1DMI\s0 string identified by \fBKEYWORD\fR.
7777
\fBbios-revision\fR, \fBfirmware-revision\fR,
7878
\fBsystem-manufacturer\fR, \fBsystem-product-name\fR,
7979
\fBsystem-version\fR, \fBsystem-serial-number\fR,
80-
\fBsystem-uuid\fR, \fBsystem-family\fR,
80+
\fBsystem-uuid\fR, \fBsystem-sku-number\fR, \fBsystem-family\fR,
8181
\fBbaseboard-manufacturer\fR, \fBbaseboard-product-name\fR,
8282
\fBbaseboard-version\fR, \fBbaseboard-serial-number\fR,
8383
\fBbaseboard-asset-tag\fR, \fBchassis-manufacturer\fR,

0 commit comments

Comments
 (0)