diff options
author | Erik Troan <ewt@redhat.com> | 2001-01-08 19:43:14 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-01-08 19:43:14 +0000 |
commit | 59e6bf48a1bc882b90413df36f0ef30f8aeea1b9 (patch) | |
tree | d54d07b3549aabab2f836c2f4588e6725dd06b4f /pcmcia.py | |
parent | b0fbcd6a577badf6a63dc3b254586e34a8957eb2 (diff) | |
download | anaconda-59e6bf48a1bc882b90413df36f0ef30f8aeea1b9.tar.gz anaconda-59e6bf48a1bc882b90413df36f0ef30f8aeea1b9.tar.xz anaconda-59e6bf48a1bc882b90413df36f0ef30f8aeea1b9.zip |
need to be able to detect pcmcia controller existence to know if laptop
installs should be the default
Diffstat (limited to 'pcmcia.py')
-rwxr-xr-x | pcmcia.py | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -1,6 +1,21 @@ #!/usr/bin/python -import iutil, string, os, kudzu +import iutil, string, os + +def hasPcmcia(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 + + return 1 def createPcmciaConfig(path, pcic, test = 0): f = open(path, "w") |