From f128a3b3f241c7280339a2be8f3e6c18295bb526 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 19 Nov 2006 12:21:16 +0000 Subject: Allow reloading the kernel module list --- hardinfo2/devices.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'hardinfo2/devices.c') 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; -- cgit v1.2.3