PDA

View Full Version : change power/frag/rts to your alfa card script



kali1981
2013-05-28, 12:08
how to use : copy the text and past in a empty document and rename with alfa-tx-power.sh



#!/bin/bash
clear
echo "################################################## #################################"
echo "This script will change TX-power/frag/rts to your alfa card."
echo "for your wlan0 or wlan1,etc"
echo "################################################## ##################################"
echo
echo "Press ENTER to continue.."
read ENTER
echo
iwconfig
echo
echo "What is your WLAN device?"
read IFACE
echo "################################################## #################################"
echo ""
echo "Boosting your Tx_Power from 20 > 30 on $IFACE"
echo ""
echo "################################################## ##################################"
sleep 3
echo
sudo iw reg set BO
echo
sleep 1
sudo iwconfig $IFACE txpower 30
echo
sleep 3
echo "Setting your rate 11M auto on $IFACE"
echo
sudo iwconfig $IFACE rate 11M auto
sleep 3
echo "################################################## ##################################"
echo
echo "Setting your rate 11M fixed on $IFACE"
echo
sudo iwconfig $IFACE rate 11M fixed
sleep 3
echo "################################################## ##################################"
echo
echo "Setting your frag 2346 on $IFACE"
echo
sudo iwconfig $IFACE frag 2346
sleep 3
echo "################################################## ##################################"
echo "Setting your rts 2347 on $IFACE"
echo
sudo iwconfig $IFACE rts 2347
echo
echo "################################################## ##################################"
sleep 2
echo
echo "##### The power for $IFACE device has been changed ######"
echo
iwconfig $IFACE
echo
echo
echo "Script is done time to enjoy. "
echo
sleep 10
echo


http://www.4shared.com/file/MQPjSW3u/alfa-tx-power.html
http://www.4shared.com/file/oXvc3sC3/alfa-tx-power1.html