Guest User

Untitled

a guest
May 11th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #!/bin/bash
  2. BRANCH=-340xx # Enter a branch if needed, i.e. -340xx or -304xx
  3. NVIDIA=nvidia${BRANCH} # If no branch entered above this would be "nvidia"
  4. NOUVEAU=xf86-video-nouveau
  5.  
  6. # Replace -R with -Rs to if you want to remove the unneeded dependencies
  7. if [ $(pacman -Qqs ^mesa-libgl$) ]; then
  8. pacman -S $NVIDIA ${NVIDIA}-libgl # Add lib32-${NVIDIA}-libgl and ${NVIDIA}-lts if needed
  9. # pacman -R $NOUVEAU
  10. elif [ $(pacman -Qqs ^${NVIDIA}$) ]; then
  11. pacman -S --needed $NOUVEAU mesa-libgl # Add lib32-mesa-libgl if needed
  12. pacman -R $NVIDIA # Add ${NVIDIA}-lts if needed
  13. fi
Add Comment
Please, Sign In to add comment