From 959de3a82f9c6da9db0be79245ee1e8dc02f6ad3 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Thu, 24 Aug 2000 15:37:16 +0000 Subject: revert revert --- edd/edd.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'edd') 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; } -- cgit