View difference between Paste ID: gEHFP25K and
SHOW: | | - or go back to the newest paste.
1-
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