wok-6.x view hardinfo/stuff/os.patch @ rev 22625
updated cyrus-imapd and cyrus-impad-dev (2.4.17 -> 3.0.13)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jan 12 16:58:49 2020 +0100 (2020-01-12) |
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 }