Changeset 24822 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 20, 2009 1:34:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r24697 r24822 497 497 return "Unknown" 498 498 499 def getFirmwareType(type): 500 if type == 0: 501 return "invalid" 502 elif type == 1: 503 return "bios" 504 elif type == 2: 505 return "efi" 506 elif type == 3: 507 return "efi64" 508 elif type == 4: 509 return "efidual" 510 else: 511 return "Unknown" 512 513 499 514 def infoCmd(ctx,args): 500 515 if (len(args) < 2): … … 509 524 print " ID [n/a]: %s" %(mach.id) 510 525 print " OS Type [n/a]: %s" %(os.description) 511 print " Firmware [firmwareType]: %s " %(mach.firmwareType)526 print " Firmware [firmwareType]: %s (%s)" %(getFirmwareType(mach.firmwareType),mach.firmwareType) 512 527 print 513 528 print " CPUs [CPUCount]: %d" %(mach.CPUCount)
Note:
See TracChangeset
for help on using the changeset viewer.