diff options
author | Erik Troan <ewt@redhat.com> | 2001-01-08 18:01:30 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-01-08 18:01:30 +0000 |
commit | 7e59407393a1a6c35f009d87ae5c03112b4e921d (patch) | |
tree | e93f29a9a8929a205b90e6b8742c129ef09ba6f0 /pcmcia.py | |
parent | 5dd5685427b0a183509c2642bca6d7d1b321d890 (diff) | |
download | anaconda-7e59407393a1a6c35f009d87ae5c03112b4e921d.tar.gz anaconda-7e59407393a1a6c35f009d87ae5c03112b4e921d.tar.xz anaconda-7e59407393a1a6c35f009d87ae5c03112b4e921d.zip |
get pcic from command line, don't probe for it ourself
Diffstat (limited to 'pcmcia.py')
-rwxr-xr-x | pcmcia.py | 23 |
1 files changed, 3 insertions, 20 deletions
@@ -1,27 +1,10 @@ #!/usr/bin/python -import iutil, string, os +import iutil, string, os, kudzu -def pcicType(test = 0): - loc = "/sbin/probe" - if not os.access(loc, os.X_OK): - loc = "/usr/sbin/probe" - - try: - result = iutil.execWithCapture(loc, [ loc ]) - except RuntimeError: - return None - - if (string.find(result, "TCIC-2 probe: not found") != -1): - return None - elif (string.find(result, "TCIC-2") != -1): - return "tcic" - - return "i82365" - -def createPcmciaConfig(path, test = 0): +def createPcmciaConfig(path, pcic, test = 0): f = open(path, "w") - pcic = pcicType(test = test) + if (pcic): f.write("PCMCIA=yes\n") f.write("PCIC=%s\n" % (pcic,)) |