some local changes

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-08-14 15:47:31 +03:00
parent dd6258eafa
commit ece1bda657
2 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,11 @@
#! /bin/bash #! /bin/bash
if zenity --question --text ""$1" has been processed successfully. Would you like to reboot for changes to take effect?" if echo $1 | grep -i mesa
then then
true
else
if zenity --question --text ""$1" has been processed successfully. Would you like to reboot for changes to take effect?"
then
systemctl reboot systemctl reboot
fi
fi fi

View File

@ -29,7 +29,7 @@ else
else else
if echo "$2" | grep -i -E 'mesa' &> /dev/null if echo "$2" | grep -i -E 'mesa' &> /dev/null
then then
DEVICE="$(lspci | grep -i -E 'vga|display|3d' | cut -d":" -f3)" DEVICE="$(lspci | grep -i -E 'vga|display|3d' | cut -d":" -f3 | grep -vi nvidia)"
else else
DEVICE="$(ubuntu-drivers devices | sed ':a;N;$!ba;s/\nmodel/ /g' | grep vendor | grep -i $2 | sed 's/vendor/Device:/')" DEVICE="$(ubuntu-drivers devices | sed ':a;N;$!ba;s/\nmodel/ /g' | grep vendor | grep -i $2 | sed 's/vendor/Device:/')"
fi fi