| |
|
| def krn_modulesenabled(kinfo): |
def krn_modulesenabled(kinfo): |
| """Checks the source to see if modules are enabled""" |
"""Checks the source to see if modules are enabled""" |
| output=getoutput("""awk -F '=' '/^CONFIG_MODULES/{v=$2} END { printf("%s\\n", v) }' """ + kinfo["workdir"] + """.config | sed "s/ //g" """) |
output=getoutput("""awk -F '=' '/^CONFIG_MODULES/{v=$2} END { printf("%s\\n", v) }' """ + kinfo["workdir"] + """/.config | sed "s/ //g" """) |
| if (output=='y'): |
if (output=='y'): |
| result=True |
result=1 |
| else: |
else: |
| result=False |
result=0 |
| |
print "modules output=%s result=%s" % (output, result) |
| |
|
| return result |
return result |
| |
|
| def krn_localversion(kinfo): |
def krn_localversion(kinfo): |