parent
f6fa922bb3
commit
eacbb885b3
1 changed files with 7 additions and 2 deletions
|
|
@ -18,6 +18,7 @@ from wk.ui import ansi
|
||||||
|
|
||||||
# STATIC VARIABLES
|
# STATIC VARIABLES
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
EVERYMAC_URL = 'https://everymac.com/ultimate-mac-lookup/?search_keywords='
|
||||||
|
|
||||||
|
|
||||||
@dataclass(slots=True)
|
@dataclass(slots=True)
|
||||||
|
|
@ -162,9 +163,13 @@ class System:
|
||||||
return report
|
return report
|
||||||
|
|
||||||
# Get details
|
# Get details
|
||||||
report.append(f'Vendor: {get_dmi_info_linux("sys_vendor")}')
|
vendor = get_dmi_info_linux("sys_vendor")
|
||||||
|
serial = get_dmi_info_linux("product_serial")
|
||||||
|
report.append(f'Vendor: {vendor}')
|
||||||
report.append(f'Name: {get_dmi_info_linux("product_name")}')
|
report.append(f'Name: {get_dmi_info_linux("product_name")}')
|
||||||
report.append(f'Serial: {get_dmi_info_linux("product_serial")}')
|
report.append(f'Serial: {serial}')
|
||||||
|
if 'apple' in vendor.lower():
|
||||||
|
report.append(f'{EVERYMAC_URL}{serial}')
|
||||||
|
|
||||||
# Done
|
# Done
|
||||||
return report
|
return report
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue