nvidiatonouveau 403 B

1234567891011121314151617
  1. #!/bin/bash
  2. # nvidia -> nouveau
  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 nvidia nvidia-libgl lib32-nvidia-libgl
  11. pacman -S --noconfirm nouveau-dri xf86-video-nouveau lib32-nouveau-dri
  12. mkinitcpio -p linux