diff options
author | Matt Wilson <msw@redhat.com> | 2000-08-24 15:37:16 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-08-24 15:37:16 +0000 |
commit | 959de3a82f9c6da9db0be79245ee1e8dc02f6ad3 (patch) | |
tree | a828309d8fcd8de8f86567054f0d1fb474a22c7f /edd | |
parent | faeb64d443ef81cae4ad4ee237a107b0ae1850b3 (diff) | |
download | anaconda-959de3a82f9c6da9db0be79245ee1e8dc02f6ad3.tar.gz anaconda-959de3a82f9c6da9db0be79245ee1e8dc02f6ad3.tar.xz anaconda-959de3a82f9c6da9db0be79245ee1e8dc02f6ad3.zip |
revert revert
Diffstat (limited to 'edd')
-rw-r--r-- | edd/edd.c | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -55,6 +55,8 @@ edd_get_parameters (EDDCapability *ec) struct LRMI_regs regs; EDDParameters *ep, *ret; + return NULL; + if (edd_lrmi_init() == EDD_ERROR) { return NULL; } @@ -105,7 +107,21 @@ EDDCapability * edd_supported(int drive) { struct LRMI_regs regs; - + + FILE *f = fopen("/proc/cmdline", "r"); + if (f) { + char buf[100]; + fgets(buf, sizeof(buf) - 1, f); + fclose(f); + if (strstr(buf, "lba32")) { + EDDCapability *ec = malloc (sizeof (EDDCapability)); + ec->edd = 1; + return rc; + } + return NULL; + } + return NULL; + if (edd_lrmi_init() == EDD_ERROR) { return NULL; } |