diff options
Diffstat (limited to 'pcmcia.py')
-rwxr-xr-x | pcmcia.py | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -2,7 +2,7 @@ import iutil, string -def pcmciaPcicType(test = 0): +def pcicType(test = 0): if (test): loc = "/sbin/probe" else: @@ -17,3 +17,17 @@ def pcmciaPcicType(test = 0): return "i82365" +def createPcmciaConfig(path, test = 0): + f = open(path, "w") + pcic = pcicType(test = test) + if (pcic): + f.write("PCMCIA=yes\n") + f.write("PCIC=%s\n" % (pcic,)) + else: + f.write("PCMCIA=no\n") + f.write("PCIC=\n") + + f.write("PCIC_OPTS=\n") + f.write("CORE_OPTS=\n") + + f.close() |