Compact Wireless Drivers Installation

A script by Bar Hofesh to install the compact-wireless drivers on your machine according to your kernel version.

Many thanks to Tom Lime for posting his improvement of the script!

#!/bin/bash

# Coded by Bar Hofesh
# Improved by Tom Lime

# Checking kernel version
chance=$(uname -r | cut -d. -f1-2)
bdir=/tmp/compat_wireless

case "$chance" in
    "3.1")
	url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.1/compat-wireless-3.1-rc8-1.tar.bz2"
	;;
    "3.2")
	url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.2/compat-wireless-3.2.5-1.tar.bz2"
	;;
    "3.3")
	url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.3/compat-wireless-3.3-2-n.tar.bz2"
	;;
    "3.4")
	url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.4/compat-wireless-3.4-rc3-1.tar.bz2"
	;;
    "3.5")
	url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.5/compat-wireless-3.5.4-1.tar.bz2"
	;;
    "3.6")
	url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.6/compat-wireless-3.6.6-1.tar.bz2"
	;;
    *)
	echo "Kernel Version not supported by script"
	exit 1
esac

mkdir $bdir
cd $bdir
wget $url
tar xvjf compat-wireless*
cd compat-wireless*
sudo ./configure
sudo make
sudo make install

4 Comments

  1. This script supports kernels 3.1 – 3.6 , when using with aircrack-ng\reaver you could have the -1 channel bug, if so use the patch from :

    cd compat-wireless*
    wget http://patches.aircrack-ng.org/channel-negative-one-maxim.patch
    patch -p1 < channel-negative-one-maxim.patch

  2. Yeah nasty problem… thanks for this handy script.
    I just improved it a little bit http://pastebin.com/QSxsYAzh

    #! /bin/bash

    # Coded by Bar Hofesh
    # Improved by Tom Lime

    # Checking kernel version

    chance=$(uname -r | cut -d. -f1-2)
    bdir=/tmp/compat_wireless

    case "$chance" in
    "3.1")
    url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.1/compat-wireless-3.1-rc8-1.tar.bz2"
    ;;
    "3.2")
    url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.2/compat-wireless-3.2.5-1.tar.bz2"
    ;;
    "3.3")
    url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.3/compat-wireless-3.3-2-n.tar.bz2"
    ;;
    "3.4")
    url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.4/compat-wireless-3.4-rc3-1.tar.bz2"
    ;;
    "3.5")
    url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.5/compat-wireless-3.5.4-1.tar.bz2"
    ;;
    "3.6")
    url="http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.6/compat-wireless-3.6.6-1.tar.bz2"
    ;;
    *)
    echo "Kernel Version not supported by script"
    exit 1
    esac

    mkdir $bdir
    cd $bdir
    wget $url
    tar xvjf compat-wireless*
    cd compat-wireless*
    sudo ./configure
    sudo make
    sudo make install

  3. Nice ! much cleaner this way thank you

Leave a Reply to supcendawan Cancel reply

Your email address will not be published. Required fields are marked *

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>