Commit bb156493 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play switch-to-nvidia.sh: add --force support

parent 280f9a85
......@@ -22,8 +22,8 @@ epm assure lspci pciutils || exit
# проверяем работоспособность драйвера на текущий момент
# TODO: добавить проверку на гибридную графику
# TODO: добавить аргумент --force для принудительной переустановки
if a= lspci -k | grep -A 2 -i "VGA" | grep "Kernel driver in use" | grep -q "nvidia" ; then
echo "NVIDIA driver is already installed."
if [ -z "$force" ] && a= lspci -k | grep -A 2 -i "VGA" | grep "Kernel driver in use" | grep -q "nvidia" ; then
echo "NVIDIA driver is already installed and used."
exit
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment