File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1021,6 +1021,12 @@ fn smbios_info() {
1021
1021
println ! ( " Family: {}" , family) ;
1022
1022
}
1023
1023
}
1024
+ DefinedStruct :: SystemChassisInformation ( data) => {
1025
+ println ! ( "System Chassis Information" ) ;
1026
+ if let Some ( chassis) = data. chassis_type ( ) {
1027
+ println ! ( " Type: {}" , chassis) ;
1028
+ }
1029
+ }
1024
1030
DefinedStruct :: BaseBoardInformation ( data) => {
1025
1031
println ! ( "BaseBoard Information" ) ;
1026
1032
if let Some ( version) = dmidecode_string_val ( & data. version ( ) ) {
Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ pub fn is_framework() -> bool {
50
50
return true ;
51
51
}
52
52
53
+ // If we match any of our platforms, it's our platform
54
+ if get_platform ( ) . is_some ( ) {
55
+ return true ;
56
+ }
57
+
53
58
// Don't need to parse SMBIOS on FreeBSD, can just read kenv
54
59
#[ cfg( target_os = "freebsd" ) ]
55
60
if let Ok ( maker) = kenv_get ( "smbios.system.maker" ) {
You can’t perform that action at this time.
0 commit comments