summaryrefslogtreecommitdiffstats
path: root/pcmcia.py
diff options
context:
space:
mode:
Diffstat (limited to 'pcmcia.py')
-rwxr-xr-xpcmcia.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/pcmcia.py b/pcmcia.py
index 16aa20433..5904f76a0 100755
--- a/pcmcia.py
+++ b/pcmcia.py
@@ -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()