wok view hardinfo/stuff/os.patch @ rev 19673
Up tazpkg (940)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 08 05:35:15 2017 +0200 (2017-02-08) |
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 }