some local changes
This commit is contained in:
parent
dd6258eafa
commit
ece1bda657
@ -1,6 +1,11 @@
|
|||||||
#! /bin/bash
|
#! /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?"
|
if zenity --question --text ""$1" has been processed successfully. Would you like to reboot for changes to take effect?"
|
||||||
then
|
then
|
||||||
systemctl reboot
|
systemctl reboot
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user