diff options
author | Agney Lopes Roth Ferraz <agney@debian.org> | 2007-12-09 05:03:40 -0400 |
---|---|---|
committer | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 14:38:45 -0500 |
commit | 18e8f4ab62003cb2e251f1540d083114ad489123 (patch) | |
tree | 1685ab16402d10233f81c67aa4ad7cf857246d86 /devices.c | |
parent | 401ee3a8ee846998cf0fa3ebadcc81cffe1da3ed (diff) | |
parent | ee6c3f9b4cf08a276c971dee66e1acdb32b3dff9 (diff) |
Import Debian changes 0.4.2.3-1
hardinfo (0.4.2.3-1) unstable; urgency=low
* New upstream release.(Closes: #454947)
Diffstat (limited to 'devices.c')
-rw-r--r-- | devices.c | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -23,6 +23,7 @@ #include <hardinfo.h> #include <shell.h> #include <iconcache.h> +#include <syncmanager.h> #include <expr.h> #include <socket.h> @@ -346,8 +347,20 @@ guchar hi_module_get_weight(void) void hi_module_init(void) { - moreinfo = - g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); + if (!g_file_test("/usr/share/misc/pci.ids", G_FILE_TEST_EXISTS)) { + static SyncEntry se[] = { + { + .fancy_name = "Update PCI ID listing", + .name = "GetPCIIds", + .save_to = "pci.ids", + .get_data = NULL + } + }; + + sync_manager_add_entry(&se[0]); + } + + moreinfo = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); __init_memory_labels(); } |