Guest User

compat wireless aircrack negative channel fix script

a guest
Nov 16th, 2012
142
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/bash
  2.  
  3. # Coded by Bar Hofesh
  4. # Improved by Tom Lime
  5.  
  6. # Checking kernel version
  7.  
  8. chance=$(uname -r | cut -d. -f1-2)
  9. bdir=/tmp/compat_wireless
  10.  
  11. case "$chance" in
  12.     "3.1")
  13.     url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.1/compat-wireless-3.1-rc8-1.tar.bz2"
  14.     ;;
  15.     "3.2")
  16.     url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.2/compat-wireless-3.2.5-1.tar.bz2"
  17.     ;;
  18.     "3.3")
  19.     url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.3/compat-wireless-3.3-2-n.tar.bz2"
  20.     ;;
  21.     "3.4")
  22.     url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.4/compat-wireless-3.4-rc3-1.tar.bz2"
  23.     ;;
  24.     "3.5")
  25.     url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.5/compat-wireless-3.5.4-1.tar.bz2"
  26.     ;;
  27.     "3.6")
  28.     url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.6/compat-wireless-3.6.6-1.tar.bz2"
  29.     ;;
  30.     *)
  31.     echo "Kernel Version not supported by script"
  32.     exit 1
  33. esac
  34.  
  35. mkdir $bdir
  36. cd $bdir
  37. wget $url
  38. tar xvjf compat-wireless*
  39. cd compat-wireless*
  40. sudo ./configure
  41. sudo make
  42. sudo make install
RAW Paste Data