diff options
author | Matt Wilson <msw@redhat.com> | 1999-08-23 23:40:12 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-08-23 23:40:12 +0000 |
commit | ad158f6de2adb1dfbacc22fa3a2df4970b8dea72 (patch) | |
tree | 227a6dc3f779a8960f01148046c9ee3a673ab4f1 | |
parent | a6d0f1c8fce8f0d8a8a3653782d4bf68132fa3e1 (diff) | |
download | anaconda-ad158f6de2adb1dfbacc22fa3a2df4970b8dea72.tar.gz anaconda-ad158f6de2adb1dfbacc22fa3a2df4970b8dea72.tar.xz anaconda-ad158f6de2adb1dfbacc22fa3a2df4970b8dea72.zip |
write pcmcia config
-rwxr-xr-x | pcmcia.py | 16 | ||||
-rw-r--r-- | todo.py | 2 |
2 files changed, 17 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() @@ -7,6 +7,7 @@ import socket import crypt import whrandom import _balkan +import pcmcia def _(x): return x @@ -910,6 +911,7 @@ class ToDo: self.writeNetworkConfig () self.writeRootPassword () self.setupAuthentication () + pcmcia.createPcmciaConfig(self.instPath + "/etc/sysconfig/pcmcia") self.copyConfModules () self.installLilo () |