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/gpu.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/devices/gpu.c') diff --git a/modules/devices/gpu.c b/modules/devices/gpu.c index b999e1fc..05fbac7e 100644 --- a/modules/devices/gpu.c +++ b/modules/devices/gpu.c @@ -217,4 +217,11 @@ void scan_gpu_do(void) { } } gpud_list_free(gpus); + + if (c) + gpu_list = g_strconcat(gpu_list, "[$ShellParam$]\n", "ViewType=1\n", NULL); + else { + /* NO GPU? */ + gpu_list = g_strconcat(gpu_list, _("No GPU devices found"), "=\n", NULL); + } } -- cgit v1.2.3