From ef6fa8fb1d29a67095d4800e54113cbb53411c29 Mon Sep 17 00:00:00 2001 From: Burt P Date: Thu, 21 Jun 2018 17:27:06 -0500 Subject: pci, gpu: fix for duplicate sections when not using English Signed-off-by: Burt P --- modules/devices/pci.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'modules/devices/pci.c') diff --git a/modules/devices/pci.c b/modules/devices/pci.c index 332ea448..e068ef05 100644 --- a/modules/devices/pci.c +++ b/modules/devices/pci.c @@ -154,9 +154,12 @@ void scan_pci_do(void) { } pcid_list_free(list); - return; } - /* NO PCI? */ - pci_list = g_strconcat(pci_list, _("No PCI devices found"), "=\n", NULL); + if (c) + pci_list = g_strconcat(pci_list, "[$ShellParam$]\n", "ViewType=1\n", NULL); + else { + /* NO PCI? */ + pci_list = g_strconcat(pci_list, _("No PCI devices found"), "=\n", NULL); + } } -- cgit v1.2.3