diff --git a/pym/cl_utils.py b/pym/cl_utils.py index 8d8578f..0d72762 100644 --- a/pym/cl_utils.py +++ b/pym/cl_utils.py @@ -986,6 +986,13 @@ def getSquashList(): return map(lambda x:{"lzma":"xz"}.get(x,x), list(set(usesSquashFs) & wantMethod)) +def getAvailableX11Drivers(prefix="/"): + """Get available x11 drivers (Depricated Function)""" + xorg_modules_dir = path.join(prefix,'usr/lib/xorg/modules/drivers') + return map(lambda x: x[:-7], + filter(lambda x:x.endswith('_drv.so'), + listDirectory(xorg_modules_dir))) + def lspci(filtername=None,shortInfo=False): """Get hash of lspci, filtred by filtername. If shortInfo, then type,vendor and name get only first word