wok view hardinfo/stuff/os.patch @ rev 2591
openssl: Security update (multiple vulnerabilities)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 08 20:57:26 2009 +0200 (2009-04-08) |
parents | |
children | 4de2c7803ae7 |
line source
1 --- computer.h 2008-05-02 13:32:10.000000000 +0200
2 +++ computer.h 2008-05-02 13:34:31.000000000 +0200
3 @@ -23,6 +23,7 @@
4 static struct {
5 gchar *file, *codename;
6 } distro_db[] = {
7 + { DB_PREFIX "slitaz-release", "slitaz" },
8 { DB_PREFIX "debian_version", "deb" },
9 { DB_PREFIX "slackware-version", "slk" },
10 { DB_PREFIX "mandrake-release", "mdk" },
11 --- arch/linux/common/os.h 2008-05-02 13:43:33.000000000 +0200
12 +++ arch/linux/common/os.h 2008-05-02 13:44:49.000000000 +0200
13 @@ -181,6 +181,10 @@
14 ((buf[0] >= '0' && buf[0] <= '9') || buf[0] != 'D')) {
15 os->distro = g_strdup_printf
16 ("Debian GNU/Linux %s", buf);
17 + }
18 + else if (!strncmp(distro_db[i].codename, "slitaz", 6)) {
19 + os->distro = g_strdup_printf
20 + ("Slitaz GNU/Linux %s", buf);
21 } else {
22 os->distro = g_strdup(buf);
23 }