Advertisement
ActionParsnip

Untitled

Nov 3rd, 2011
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. sudo dpkg --configure -a
  4. sudo apt-fast -f install
  5. sudo dpkg -l | grep '^rc' | awk '{print $2}' | xargs dpkg --purge
  6.  
  7. clear
  8. echo "Updating APT database..."
  9. sudo apt-fast update > /dev/null 2>&1
  10. sudo apt-fast -y dist-upgrade
  11. sudo apt-fast -y upgrade
  12. sudo apt-fast clean
  13.  
  14. sudo dpkg --configure -a
  15. sudo apt-get -f install
  16.  
  17. if [[ "$1" == "s" ]]; then
  18. sudo shutdown -h now
  19. fi
  20.  
  21. if [[ "$1" == "r" ]]; then
  22. sudo shutdown -r now
  23. fi
  24.  
  25.  
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement