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() {
10211021 println ! ( " Family: {}" , family) ;
10221022 }
10231023 }
1024+ DefinedStruct :: SystemChassisInformation ( data) => {
1025+ println ! ( "System Chassis Information" ) ;
1026+ if let Some ( chassis) = data. chassis_type ( ) {
1027+ println ! ( " Type: {}" , chassis) ;
1028+ }
1029+ }
10241030 DefinedStruct :: BaseBoardInformation ( data) => {
10251031 println ! ( "BaseBoard Information" ) ;
10261032 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 {
5050 return true ;
5151 }
5252
53+ // If we match any of our platforms, it's our platform
54+ if get_platform ( ) . is_some ( ) {
55+ return true ;
56+ }
57+
5358 // Don't need to parse SMBIOS on FreeBSD, can just read kenv
5459 #[ cfg( target_os = "freebsd" ) ]
5560 if let Ok ( maker) = kenv_get ( "smbios.system.maker" ) {
You can’t perform that action at this time.
0 commit comments