diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-01-05 16:34:21 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-01-05 16:34:21 +0000 |
commit | 97a0e2a21cdb30193b6c5101ff29a8cb7cc39ebb (patch) | |
tree | 55d900984c913d965eb9125a4fbae058a4ced954 /hardinfo2/computer.c | |
parent | 448244afe83f875993408d09319d1458c4ea4e32 (diff) |
Some fixes for Linux 2.4.
Diffstat (limited to 'hardinfo2/computer.c')
-rw-r--r-- | hardinfo2/computer.c | 18 |
1 files changed, 18 insertions, 0 deletions
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) { |