chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
63415a2
)
hostnamed: add reference to SMBIOS specs
author
Lennart Poettering
<lennart@poettering.net>
Sat, 16 Apr 2011 00:43:02 +0000
(
02:43
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Sat, 16 Apr 2011 00:43:02 +0000
(
02:43
+0200)
src/hostnamed.c
patch
|
blob
|
history
diff --git
a/src/hostnamed.c
b/src/hostnamed.c
index 4ba1d4a57014a05ad882a9a56283db1f012063f8..d7e553e6d139da00ed9d99ac8467570976c9e7ab 100644
(file)
--- a/
src/hostnamed.c
+++ b/
src/hostnamed.c
@@
-3,7
+3,7
@@
/***
This file is part of systemd.
/***
This file is part of systemd.
- Copyright 201
0
Lennart Poettering
+ Copyright 201
1
Lennart Poettering
systemd is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
systemd is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
@@
-134,7
+134,13
@@
static const char* fallback_icon_name(void) {
/* We only list the really obvious cases here. The DMI data is
unreliable enough, so let's not do any additional guesswork
/* We only list the really obvious cases here. The DMI data is
unreliable enough, so let's not do any additional guesswork
- on top of that. */
+ on top of that.
+
+ See the SMBIOS Specification 2.7.1 section 7.4.1 for
+ details about the values listed here:
+
+ http://www.dmtf.org/sites/default/files/standards/documents/DSP0134_2.7.1.pdf
+ */
switch (t) {
switch (t) {
@@
-150,6
+156,7
@@
static const char* fallback_icon_name(void) {
return "computer-laptop";
case 0x11:
return "computer-laptop";
case 0x11:
+ case 0x1C:
return "computer-server";
}
return "computer-server";
}