]>
git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - kernel/scripts/configcommon.py
54f355add30412611e35924e75d5675f63aff24c
2 ###############################################################################
3 # IPFire.org - An Open Source Firewall Solution #
4 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
5 ###############################################################################
10 filelist
= sys
.argv
[1:]
17 for filename
in filelist
:
20 for line
in f
.readlines():
24 if line
.startswith("# Automatically generated file;"):
27 if line
.endswith("Kernel Configuration"):
32 m
= re
.match("^# (.*) is not set$", line
)
37 m
= re
.match("^(.*)=(.*)$", line
)
43 option_value
= "%s=%s" % (option
, value
or "")
46 options_counter
[option_value
] += 1
50 options_counter
[option_value
] = 1
59 m
= re
.match("^# (.*) is not set$", line
)
61 if options_counter
.get("%s=n" % m
.group(1), 0) == len(filelist
):
62 print "# %s is not set" % m
.group(1)
66 m
= re
.match("^(.*)=(.*)$", line
)
68 if options_counter
.get(m
.group(0), 0) == len(filelist
):