mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
hostname: detect detachable dmi chassis type (#5489)
Detect the 'Detachable' dmi chassis type properly. Use the new 'convertible' chassis class of hostnamed, instead of returning the generic 'computer' chassis class.
This commit is contained in:
committed by
Lennart Poettering
parent
a6f8786a56
commit
b4227dbb45
@@ -202,6 +202,7 @@ static const char* fallback_chassis(void) {
|
||||
return "tablet";
|
||||
|
||||
case 0x1F: /* Convertible */
|
||||
case 0x20: /* Detachable */
|
||||
return "convertible";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user