wok-current view hardinfo/stuff/os.patch @ rev 19518

Up get-palemoon (27.0.0)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Wed Nov 23 11:04:21 2016 +0100 (2016-11-23)
parents 3364afe06006
children 3ad63c8fc2f9
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 @@ -215,6 +215,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 }