Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Boba Fett

By: a guest on Jun 18th, 2010  |  syntax: Bash  |  size: 0.70 KB  |  views: 369  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/sh
  2. #Installairdrop-ng-script
  3. #Script by CAG (aka BobaFett)
  4. #May 2010 (updated June 2010)
  5. #
  6. #Installs airdrop-ng in Backtrack 4 (useful if you use the BT4 live disc)
  7. #To run script, save it as "Installairdrop-ng-script" (or whatever you like) and make it executable using chmod, or simply right click->properties->permissions->check "is executable", then change to the appropriate directory and type ./Installairdrop-ng-script in a terminal.
  8.  
  9. ROOT_UID=0     # Only users with $UID 0 have root privileges.
  10. E_NOTROOT=87   # Non-root exit error.
  11.  
  12. if [ "$UID" -ne "$ROOT_UID" ]
  13. then
  14.   echo "Must be root to run this script."
  15.   exit $E_NOTROOT
  16. fi  
  17.  
  18. apt-get update && apt-get install airdrop-ng