From 17781ec9413dd096bac1c2b21f7fac0423bb13b2 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Tue, 10 Sep 2024 03:09:09 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20drivers:=20make=20chwd=20flags?= =?UTF-8?q?=20corrections=20to=20latest=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/drivers.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/drivers.cpp b/src/drivers.cpp index 648b1e4..0504550 100644 --- a/src/drivers.cpp +++ b/src/drivers.cpp @@ -68,8 +68,7 @@ void install_graphics_menu() noexcept { [[maybe_unused]] const auto& mountpoint = std::get(config_data["MOUNTPOINT"]); const std::vector menu_entries = { - "Auto-install free drivers", - "Auto-install proprietary drivers", + "Auto-install drivers", "Select Display Driver", "Back", }; @@ -80,15 +79,11 @@ void install_graphics_menu() noexcept { switch (selected) { #ifdef NDEVENV case 0: - utils::arch_chroot("chwd -a pci free 0300"sv); - std::ofstream{fmt::format(FMT_COMPILE("{}/.video_installed"), mountpoint)}; // NOLINT - break; - case 1: - utils::arch_chroot("chwd -a pci nonfree 0300"sv); + utils::arch_chroot("chwd --autoconfigure"sv); std::ofstream{fmt::format(FMT_COMPILE("{}/.video_installed"), mountpoint)}; // NOLINT break; #endif - case 2: + case 1: setup_graphics_card(); break; default: