From 1f296c48474b5eb90d2c64937d28b00d8fe97c30 Mon Sep 17 00:00:00 2001 From: ferrreo Date: Fri, 1 Sep 2023 16:21:41 +0100 Subject: [PATCH] Update postinst --- debian/postinst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index 76fbb07..4b79e44 100644 --- a/debian/postinst +++ b/debian/postinst @@ -50,7 +50,12 @@ 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 then - echo 'modules_force_load: nvidia' >> /etc/booster.yaml + if cat /etc/booster.yaml | grep -i 'nvidia' + then + true + else + echo 'modules_force_load: nvidia' >> /etc/booster.yaml + fi fi cp -f /usr/lib/booster/update-initramfs /usr/sbin/update-initramfs