hardinfo

Check-in [b13faa87f3]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:os database: Fatdog has to come before Puppy Linux as it shares some files with Puppy, otherwise Fatdog will be detected as Puppy Linux.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:b13faa87f396587ca066f9e6a5d5e89958e89a12
User & Date: jamesbond 2014-06-06 19:59:17
Context
2014-07-28
17:01
revert commit [d5afcb6851]; fix the real cause of missing RAM display (use moreinfo_lookup rather than hi_more_info); fix usb display crashing (util.c now looks for lsusb in /usr/sbin first); fix glibc version not showing (glibc located in /lib64/libc.so.6); initial support for DDR3 spd-decoding (incomplete, the manufacturer is not shown yet). check-in: b571f0ca03 user: jamesbond tags: trunk
2014-06-06
19:59
os database: Fatdog has to come before Puppy Linux as it shares some files with Puppy, otherwise Fatdog will be detected as Puppy Linux. check-in: b13faa87f3 user: jamesbond tags: trunk
19:33
fix missing RAM memory due to functions of the same name being exported in different shared libraries (fix: make the functions private). check-in: d5afcb6851 user: jamesbond tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to includes/computer.h.

21
22
23
24
25
26
27

28
29
30
31
32
33
34
..
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include "hardinfo.h"

#define DB_PREFIX "/etc/"

static struct {
    gchar *file, *codename;
} distro_db[] = {

    { DB_PREFIX "debian_version",	"deb"  },
    { DB_PREFIX "slackware-version",	"slk"  },
    { DB_PREFIX "mandrake-release",	"mdk"  },
    { DB_PREFIX "mandriva-release",     "mdv"  },
    { DB_PREFIX "fedora-release",       "fdra" },
    { DB_PREFIX "coas",                 "coas" },
    { DB_PREFIX "environment.corel",    "corel"},
................................................................................
    { DB_PREFIX "sabayon-release",      "sbn"  },
    { DB_PREFIX "arch-release",         "arch" },
    { DB_PREFIX "enlisy-release",       "enlsy"},
    { DB_PREFIX "SuSE-release",		"suse" },
    { DB_PREFIX "sun-release",		"sun"  },
    { DB_PREFIX "zenwalk-version",	"zen"  },
    { DB_PREFIX "DISTRO_SPECS",		"ppy"  },
    { DB_PREFIX "fatdog-version",	"fatdog"  },
    { DB_PREFIX "distro-release",	"fl"   },
    { DB_PREFIX "vine-release",         "vine" },
    { DB_PREFIX "PartedMagic-version",	"pmag" },
     /*
     * RedHat must be the *last* one to be checked, since
     * some distros (like Mandrake) includes a redhat-relase
     * file too.







>







 







<







21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
..
41
42
43
44
45
46
47

48
49
50
51
52
53
54
#include "hardinfo.h"

#define DB_PREFIX "/etc/"

static struct {
    gchar *file, *codename;
} distro_db[] = {
    { DB_PREFIX "fatdog-version",	"fatdog"  },
    { DB_PREFIX "debian_version",	"deb"  },
    { DB_PREFIX "slackware-version",	"slk"  },
    { DB_PREFIX "mandrake-release",	"mdk"  },
    { DB_PREFIX "mandriva-release",     "mdv"  },
    { DB_PREFIX "fedora-release",       "fdra" },
    { DB_PREFIX "coas",                 "coas" },
    { DB_PREFIX "environment.corel",    "corel"},
................................................................................
    { DB_PREFIX "sabayon-release",      "sbn"  },
    { DB_PREFIX "arch-release",         "arch" },
    { DB_PREFIX "enlisy-release",       "enlsy"},
    { DB_PREFIX "SuSE-release",		"suse" },
    { DB_PREFIX "sun-release",		"sun"  },
    { DB_PREFIX "zenwalk-version",	"zen"  },
    { DB_PREFIX "DISTRO_SPECS",		"ppy"  },

    { DB_PREFIX "distro-release",	"fl"   },
    { DB_PREFIX "vine-release",         "vine" },
    { DB_PREFIX "PartedMagic-version",	"pmag" },
     /*
     * RedHat must be the *last* one to be checked, since
     * some distros (like Mandrake) includes a redhat-relase
     * file too.