|
|
|
@ -29,7 +29,7 @@ from cl_utils import isMount,typeFile,getTupleVersion,pathJoin,isFstabMount,\
|
|
|
|
|
FStab, lspci, getInstalledVideo,getDeviceType, \
|
|
|
|
|
getPartitionType, getOsProberHash, getProgPath, \
|
|
|
|
|
getRaidPartitions, getLvmPartitions, getLvmGroups, \
|
|
|
|
|
getPasswdUsers, readFile
|
|
|
|
|
getPasswdUsers, readFile, readLinesFile
|
|
|
|
|
from cl_distr import DistributiveRepository,PartitionDistributive
|
|
|
|
|
from cl_fill import clLocale
|
|
|
|
|
from operator import itemgetter
|
|
|
|
@ -1481,3 +1481,13 @@ class fillVars(object, glob_attr):
|
|
|
|
|
return nonRootUsers[0]
|
|
|
|
|
else:
|
|
|
|
|
return ""
|
|
|
|
|
|
|
|
|
|
def get_os_install_kernel_cpufreq(self):
|
|
|
|
|
"""Get cpufreq (and other from modules_3= param) from conf.d/modules"""
|
|
|
|
|
cpufreqmods = map(lambda x:x.partition('=')[2].strip("\n '\""),
|
|
|
|
|
filter(lambda x:x.startswith('modules_3'),
|
|
|
|
|
readLinesFile('/etc/conf.d/modules')))
|
|
|
|
|
if cpufreqmods:
|
|
|
|
|
return cpufreqmods[0]
|
|
|
|
|
else:
|
|
|
|
|
return ""
|
|
|
|
|