refs #1059 add ogIsEfiActive()
parent
71be7a1365
commit
5532fb9eec
|
@ -0,0 +1,19 @@
|
|||
#!/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():
|
Loading…
Reference in New Issue