Skip to content

Instantly share code, notes, and snippets.

@Nihlus
Created April 10, 2016 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nihlus/a7998003ce3de663330b076b80682b4c to your computer and use it in GitHub Desktop.
Save Nihlus/a7998003ce3de663330b076b80682b4c to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "It's fucked up, but that's OK cuz I'm the unfucker. How bad is it?"
while true; do
read -p "Y/y for complete purge, N/n for normal removal. I'll reboot your shit no matter what." yn
case $yn in
[Yy]* ) sudo apt-get purge nvidia*; sudo reboot now;;
[Nn]* ) sudo apt-get remove nvidia*; sudo reboot now;;
* ) echo "Ay yo give it to me straight";;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment