From d7cf73115b6159ebe8ef380c5fd83d29101f9232 Mon Sep 17 00:00:00 2001 From: ferrreo Date: Sun, 3 Sep 2023 12:18:56 +0100 Subject: [PATCH] Update postinst --- debian/postinst | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/debian/postinst b/debian/postinst index 6b05236..64471c6 100644 --- a/debian/postinst +++ b/debian/postinst @@ -28,19 +28,7 @@ fi # Add nvidia support if an nvidia card is detected if lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i nvidia && lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i -E 'kernel modules|kernel driver' | grep -i nvidia then - if cat /etc/booster.yaml | grep -i 'nvidia' - then - true - else - echo 'modules_force_load: nvidia,usbhid' >> /etc/booster.yaml - fi -else - if cat /etc/booster.yaml | grep -i 'usbhid' - then - true - else - echo 'modules_force_load: usbhid' >> /etc/booster.yaml - fi + cp -f /etc/booster-nvidia.yaml /etc/booster.yaml fi cp -f /usr/lib/booster/update-initramfs /usr/sbin/update-initramfs