ogclone-engine/client/lib/engine/bin/InventoryLib.lib

20 lines
333 B
Python

#!/usr/bin/python3
import os
import stat
#def ogGetArch():
#def ogGetOsType():
#def ogGetOsUuid():
#def ogGetSerialNumber():
def ogIsEfiActive():
try:
return stat.S_ISDIR (os.stat ('/sys/firmware/efi').st_mode)
except:
return False
#def ogListHardwareInfo():
#def ogListSoftware():
#def ogGetOsVersion():