some local changes
This commit is contained in:
parent
dd6258eafa
commit
ece1bda657
@ -1,6 +1,11 @@
|
||||
#! /bin/bash
|
||||
|
||||
if echo $1 | grep -i mesa
|
||||
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
|
||||
fi
|
||||
fi
|
||||
|
@ -29,7 +29,7 @@ else
|
||||
else
|
||||
if echo "$2" | grep -i -E 'mesa' &> /dev/null
|
||||
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
|
||||
DEVICE="$(ubuntu-drivers devices | sed ':a;N;$!ba;s/\nmodel/ /g' | grep vendor | grep -i $2 | sed 's/vendor/Device:/')"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user