nouveautonvidia 418 B

123456789101112131415161718
  1. #!/bin/bash
  2. # nouveau -> nvidia
  3. set -e
  4. # check if root
  5. if [[ $EUID -ne 0 ]]; then
  6. echo "You must be root to run this script. Aborting...";
  7. exit 1;
  8. fi
  9. sed -i 's/MODULES="nouveau"/#MODULES="nouveau"/' /etc/mkinitcpio.conf
  10. pacman -Rdds --noconfirm nouveau-dri xf86-video-nouveau mesa-libgl lib32-nouveau-dri lib32-mesa-libgl
  11. pacman -S --noconfirm nvidia lib32-nvidia-libgl
  12. mkinitcpio -p linux