diff options
| -rw-r--r-- | hardinfo/util.c | 2 | ||||
| -rw-r--r-- | modules/devices.c | 5 | 
2 files changed, 6 insertions, 1 deletions
diff --git a/hardinfo/util.c b/hardinfo/util.c index e70120a4..36f6ea0b 100644 --- a/hardinfo/util.c +++ b/hardinfo/util.c @@ -730,6 +730,8 @@ static ShellModule *module_load(gchar * filename)  	entries = get_module_entries();  	while (entries[i].name) { +        if (*entries[i].name == '#') { i++; continue; } /* skip */ +  	    ShellModuleEntry *entry = g_new0(ShellModuleEntry, 1);  	    if (params.gui_running) { diff --git a/modules/devices.c b/modules/devices.c index eadc9dd8..9a97eee8 100644 --- a/modules/devices.c +++ b/modules/devices.c @@ -103,11 +103,14 @@ static ModuleEntry entries[] = {  #if defined(ARCH_x86) || defined(ARCH_x86_64)      [ENTRY_DMI] = {N_("DMI"), "computer.png", callback_dmi, scan_dmi, MODULE_FLAG_NONE},      [ENTRY_SPD] = {N_("Memory SPD"), "memory.png", callback_spd, scan_spd, MODULE_FLAG_NONE}, +    [ENTRY_DTREE] = {"#"},  #else +    [ENTRY_DMI] = {"#"}, +    [ENTRY_SPD] = {"#"},      [ENTRY_DTREE] = {N_("Device Tree"), "devices.png", callback_dtree, scan_dtree, MODULE_FLAG_NONE},  #endif	/* x86 or x86_64 */      [ENTRY_RESOURCES] = {N_("Resources"), "resources.png", callback_device_resources, scan_device_resources, MODULE_FLAG_NONE}, -    {NULL} +    { NULL }  };  static GSList *processors = NULL;  | 
