aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/devices.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2006-11-19 12:21:16 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2006-11-19 12:21:16 +0000
commitf128a3b3f241c7280339a2be8f3e6c18295bb526 (patch)
tree46c3565193d89823826c5c7b73305802df617343 /hardinfo2/devices.c
parentd9f77003caadb032ea53085dbf66fb8083f8f56a (diff)
Allow reloading the kernel module list
Diffstat (limited to 'hardinfo2/devices.c')
-rw-r--r--hardinfo2/devices.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hardinfo2/devices.c b/hardinfo2/devices.c
index c43104d4..6dc989b2 100644
--- a/hardinfo2/devices.c
+++ b/hardinfo2/devices.c
@@ -45,7 +45,7 @@ static ModuleEntry hi_entries[] = {
};
static GHashTable *devices = NULL;
-static gchar *module_list = "";
+static gchar *module_list = NULL;
static gchar *printer_list = NULL;
static gchar *pci_list = "";
static gchar *input_list = NULL;
@@ -115,6 +115,9 @@ void
hi_reload(gint entry)
{
switch (entry) {
+ case DEVICES_KERNEL_MODULES:
+ scan_modules();
+ break;
case DEVICES_BATTERY:
scan_battery();
break;