diff options
author | Matt Wilson <msw@redhat.com> | 2001-08-10 02:43:58 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-08-10 02:43:58 +0000 |
commit | 68015a54d2af92be758eeb09ba09c9a39a65e354 (patch) | |
tree | 4808b329ddb12dd65d874c85e01d4422a1607402 /isys/probe.c | |
parent | b94f16707a209f74c9938f63caa8d9b0c7cacbe6 (diff) | |
download | anaconda-68015a54d2af92be758eeb09ba09c9a39a65e354.tar.gz anaconda-68015a54d2af92be758eeb09ba09c9a39a65e354.tar.xz anaconda-68015a54d2af92be758eeb09ba09c9a39a65e354.zip |
try yet another path to the cpqarray proc entries (#51356)
Diffstat (limited to 'isys/probe.c')
-rw-r--r-- | isys/probe.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/isys/probe.c b/isys/probe.c index 39438a1e8..d3db6577d 100644 --- a/isys/probe.c +++ b/isys/probe.c @@ -509,11 +509,17 @@ static int CompaqSmartArrayGetDevices(struct knownDevices * devices) { char ctl[64]; char *path; - path = "/proc/driver/array"; + path = "/proc/driver/cpqarray"; sprintf(ctl, "%s/ida%d", path, ctlNum++); - f = fopen(ctl, "r"); + + if (!f) { + path = "/proc/driver/array"; + sprintf(ctl, "%s/ida%d", path, ctlNum++); + f = fopen(ctl, "r"); + } + if (!f) { path = "/proc/ida"; sprintf(ctl, "%s/ida%d", path, ctlNum++); |