wok
annotate 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 |
rev |
line source |
pascal@726
|
1 --- computer.h 2008-05-02 13:32:10.000000000 +0200
|
pascal@726
|
2 +++ computer.h 2008-05-02 13:34:31.000000000 +0200
|
pascal@726
|
3 @@ -23,6 +23,7 @@
|
pascal@726
|
4 static struct {
|
pascal@726
|
5 gchar *file, *codename;
|
pascal@726
|
6 } distro_db[] = {
|
pascal@726
|
7 + { DB_PREFIX "slitaz-release", "slitaz" },
|
pascal@726
|
8 { DB_PREFIX "debian_version", "deb" },
|
pascal@726
|
9 { DB_PREFIX "slackware-version", "slk" },
|
pascal@726
|
10 { DB_PREFIX "mandrake-release", "mdk" },
|
pascal@726
|
11 --- arch/linux/common/os.h 2008-05-02 13:43:33.000000000 +0200
|
pascal@726
|
12 +++ arch/linux/common/os.h 2008-05-02 13:44:49.000000000 +0200
|
pascal@726
|
13 @@ -181,6 +181,10 @@
|
pascal@726
|
14 ((buf[0] >= '0' && buf[0] <= '9') || buf[0] != 'D')) {
|
pascal@726
|
15 os->distro = g_strdup_printf
|
pascal@726
|
16 ("Debian GNU/Linux %s", buf);
|
pascal@726
|
17 + }
|
pascal@726
|
18 + else if (!strncmp(distro_db[i].codename, "slitaz", 6)) {
|
pascal@726
|
19 + os->distro = g_strdup_printf
|
pascal@726
|
20 + ("Slitaz GNU/Linux %s", buf);
|
pascal@726
|
21 } else {
|
pascal@726
|
22 os->distro = g_strdup(buf);
|
pascal@726
|
23 }
|