summaryrefslogtreecommitdiff
path: root/devices.c
diff options
context:
space:
mode:
authorSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 14:38:44 -0500
committerSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 14:38:44 -0500
commitee6c3f9b4cf08a276c971dee66e1acdb32b3dff9 (patch)
treef7dc3f671114fd867204dca23871eaf2fa4ccc4a /devices.c
parent7aeb5ac87c6105bd8fcc9b1fd12e37ba1550f587 (diff)
Import Upstream version 0.4.2.3
Diffstat (limited to 'devices.c')
-rw-r--r--devices.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/devices.c b/devices.c
index e1ccf6c9..6221769c 100644
--- a/devices.c
+++ b/devices.c
@@ -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();
}