summaryrefslogtreecommitdiffstats
path: root/edd
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-08-24 15:37:16 +0000
committerMatt Wilson <msw@redhat.com>2000-08-24 15:37:16 +0000
commit959de3a82f9c6da9db0be79245ee1e8dc02f6ad3 (patch)
treea828309d8fcd8de8f86567054f0d1fb474a22c7f /edd
parentfaeb64d443ef81cae4ad4ee237a107b0ae1850b3 (diff)
downloadanaconda-959de3a82f9c6da9db0be79245ee1e8dc02f6ad3.tar.gz
anaconda-959de3a82f9c6da9db0be79245ee1e8dc02f6ad3.tar.xz
anaconda-959de3a82f9c6da9db0be79245ee1e8dc02f6ad3.zip
revert revert
Diffstat (limited to 'edd')
-rw-r--r--edd/edd.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/edd/edd.c b/edd/edd.c
index 039301bd6..0076f0456 100644
--- a/edd/edd.c
+++ b/edd/edd.c
@@ -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;
}