wok view hardinfo/stuff/os.patch @ rev 21659

updated parcellite (0.9.3 -> 1.2.1)
author Hans-G?nter Theisgen
date Fri May 31 17:29:36 2019 +0100 (2019-05-31)
parents 3364afe06006
children
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 }