File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -382,10 +382,13 @@ def set_smbios(self):
382382 elif change_menu == "2" :
383383 custom_smbios = input ("Set new SMBIOS mode: " )
384384 try :
385- test = self .constants .board_id [custom_smbios ]
386- self .constants .override_smbios = custom_smbios
385+ if smbios_data .smbios_dictionary [custom_smbios ]["Board ID" ] != None :
386+ self .constants .override_smbios = custom_smbios
387+ else :
388+ print ("Non-Intel SMBIOS, reverting to Default setting" )
389+ self .constants .override_smbios = "Default"
387390 except KeyError :
388- print ("Unsupported SMBIOS, defaulting to Default setting" )
391+ print ("Unsupported SMBIOS, reverting to Default setting" )
389392 self .constants .override_smbios = "Default"
390393 elif change_menu == "3" :
391394 print ("Disabling SMBIOS spoof" )
You can’t perform that action at this time.
0 commit comments