#!/bin/sh
#
# Description:
# Script to setup the Ralink RT73 wireless driver (used by the Conceptronic C54RU USB dongle) 
# in BackTrack v2.0 Public Beta:
# Author: Raul Siles
# Date: 2006/01/18
#
# References:
# - RaLink drivers download: http://rt2x00.serialmonkey.com/wiki/index.php?title=Downloads
# - Ralink latest RT73 driver source code [1]: http://rt2x00.serialmonkey.com/rt73-cvs-daily.tar.gz
# - Aircrack-ng: http://www.aircrack-ng.org/doku.php?id=rt73
#
# Instructions:
# 1. Copy this setup.sh script and the latest RT73 driver source code [1] in the same directory.
# 2. Run ./setup.sh
#

echo
echo "[**] Extracting the RT73 driver source code..."

tar -vxzf rt73-cvs-daily.tar.gz 

echo
echo "[**] Compiling the RT73 driver source code..."

cd rt73-cvs-*/Module
make

echo
echo "[**] Installing the RT73 driver..."

make install
modprobe rt73

echo
echo "[**] Please, plug your USB WiFi card now (Press any key when done)"
read key

echo
echo "[**] Getting details about the RT73 wireless card..."

iwconfig rausb0
echo
ifconfig rausb0 up
iwconfig rausb0
echo
iwpriv rausb0 get_rfmontx

echo
echo "[**] You can manage your card at this point:"
echo
echo "[**] Enable monitor mode:"
echo "     # iwconfig rausb0 mode monitor"
echo
echo "[**] Enable injection mode:"
echo "     # iwpriv rausb0 rfmontx 1"
echo

