From 97a0e2a21cdb30193b6c5101ff29a8cb7cc39ebb Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Fri, 5 Jan 2007 16:34:21 +0000 Subject: Some fixes for Linux 2.4. --- hardinfo2/computer.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'hardinfo2/computer.c') diff --git a/hardinfo2/computer.c b/hardinfo2/computer.c index fe1f594e..a9bd3a93 100644 --- a/hardinfo2/computer.c +++ b/hardinfo2/computer.c @@ -357,6 +357,24 @@ gchar *callback_users() "%s\n", human_users, sys_users); } +gchar *get_is_linux_24(void) +{ + scan_os(FALSE); + return strstr(computer->os->kernel, "Linux 2.4") ? "" : NULL; +} + +ShellModuleMethod* +hi_exported_methods(void) +{ + static ShellModuleMethod m[] = { + { "isLinux2.4", get_is_linux_24 }, + { NULL } + }; + + return m; +} + + ModuleEntry * hi_module_get_entries(void) { -- cgit v1.2.3