diff options
author | Erik Troan <ewt@redhat.com> | 2001-02-27 18:13:34 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-02-27 18:13:34 +0000 |
commit | cefface22aa3984d8266585ef75b4b37712e1835 (patch) | |
tree | 4b6de9adf2f987288351cbfb9d86c7986e535fd6 /pcmcia.py | |
parent | b7361f2f964cefb343dd76c16550b853a0428994 (diff) | |
download | anaconda-cefface22aa3984d8266585ef75b4b37712e1835.tar.gz anaconda-cefface22aa3984d8266585ef75b4b37712e1835.tar.xz anaconda-cefface22aa3984d8266585ef75b4b37712e1835.zip |
reverted to anaconda reprobing for the pcic
Diffstat (limited to 'pcmcia.py')
-rwxr-xr-x | pcmcia.py | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -1,8 +1,12 @@ #!/usr/bin/python -import iutil, string, os +import iutil, string, os, kudzu + +def pcicType(test = 0): + devs = kudzu.probe(kudzu.CLASS_SOCKET, kudzu.BUS_PCI, 0) + if devs: + return "yenta_socket" -def hasPcmcia(test = 0): loc = "/sbin/probe" if not os.access(loc, os.X_OK): loc = "/usr/sbin/probe" @@ -14,12 +18,16 @@ def hasPcmcia(test = 0): if (string.find(result, "TCIC-2 probe: not found") != -1): return None + elif (string.find(result, "TCIC-2") != -1): + return "tcic" - return 1 + return "i82365" -def createPcmciaConfig(path, pcic, test = 0): +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,)) |