diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-07-27 16:09:36 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-07-27 16:09:36 +0000 |
commit | 422425593df585b879ca45b19849da48be463fe5 (patch) | |
tree | 2005cf9496ec141337804f13312e7fee54199e6b /hardinfo2/arch/linux/common | |
parent | c6b3b5c9908158d490150f19a040e4b186949bc3 (diff) |
Fix crashes, add Puppy Linux as a recognized distribution.
Diffstat (limited to 'hardinfo2/arch/linux/common')
-rw-r--r-- | hardinfo2/arch/linux/common/os.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hardinfo2/arch/linux/common/os.h b/hardinfo2/arch/linux/common/os.h index 0fe06709..e4f35e95 100644 --- a/hardinfo2/arch/linux/common/os.h +++ b/hardinfo2/arch/linux/common/os.h @@ -185,6 +185,15 @@ computer_get_os(void) os->distro = g_strdup(buf); } } + + if (g_str_equal(distro_db[i].codename, "ppy")) { + gchar *tmp; + + tmp = g_strdup_printf("Puppy Linux %.2f", atof(os->distro) / 100.0); + g_free(os->distro); + os->distro = tmp; + } + os->distrocode = g_strdup(distro_db[i].codename); break; |