wok-6.x diff hardinfo/stuff/os.patch @ rev 1198
Add squirrelmail
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 08 08:58:38 2008 +0000 (2008-08-08) |
parents | |
children | 4de2c7803ae7 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/hardinfo/stuff/os.patch Fri Aug 08 08:58:38 2008 +0000 1.3 @@ -0,0 +1,23 @@ 1.4 +--- computer.h 2008-05-02 13:32:10.000000000 +0200 1.5 ++++ computer.h 2008-05-02 13:34:31.000000000 +0200 1.6 +@@ -23,6 +23,7 @@ 1.7 + static struct { 1.8 + gchar *file, *codename; 1.9 + } distro_db[] = { 1.10 ++ { DB_PREFIX "slitaz-release", "slitaz" }, 1.11 + { DB_PREFIX "debian_version", "deb" }, 1.12 + { DB_PREFIX "slackware-version", "slk" }, 1.13 + { DB_PREFIX "mandrake-release", "mdk" }, 1.14 +--- arch/linux/common/os.h 2008-05-02 13:43:33.000000000 +0200 1.15 ++++ arch/linux/common/os.h 2008-05-02 13:44:49.000000000 +0200 1.16 +@@ -181,6 +181,10 @@ 1.17 + ((buf[0] >= '0' && buf[0] <= '9') || buf[0] != 'D')) { 1.18 + os->distro = g_strdup_printf 1.19 + ("Debian GNU/Linux %s", buf); 1.20 ++ } 1.21 ++ else if (!strncmp(distro_db[i].codename, "slitaz", 6)) { 1.22 ++ os->distro = g_strdup_printf 1.23 ++ ("Slitaz GNU/Linux %s", buf); 1.24 + } else { 1.25 + os->distro = g_strdup(buf); 1.26 + }