summaryrefslogtreecommitdiffstats
path: root/pcmcia.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-08-23 23:40:12 +0000
committerMatt Wilson <msw@redhat.com>1999-08-23 23:40:12 +0000
commitad158f6de2adb1dfbacc22fa3a2df4970b8dea72 (patch)
tree227a6dc3f779a8960f01148046c9ee3a673ab4f1 /pcmcia.py
parenta6d0f1c8fce8f0d8a8a3653782d4bf68132fa3e1 (diff)
downloadanaconda-ad158f6de2adb1dfbacc22fa3a2df4970b8dea72.tar.gz
anaconda-ad158f6de2adb1dfbacc22fa3a2df4970b8dea72.tar.xz
anaconda-ad158f6de2adb1dfbacc22fa3a2df4970b8dea72.zip
write pcmcia config
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()