Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- #
- # This script was coded to optimise Alfa Wireless card & make it work properly with WICD
- #
- # Author : irenicus09
- # Date : 19/08/2013
- # License : GPLv3
- #
- ############################################################################################
- if [ $# -ne 1 ]
- then
- echo "Automated Wireless Optimiser";
- echo "Usage: $0 [interface]";
- exit 1;
- fi
- interface=$1;
- # Change driver as appropriate for your card, default driver for alfa awus036h: rtl8187
- driver="rtl8187";
- #=============================================================================
- echo ""
- echo "==================================================================="
- echo "\t\tWelcome to Automated Wireless Optimiser";
- echo "===================================================================\n"
- sleep 1;
- echo "[+] Stopping WICD... ";
- /etc/init.d/wicd stop 1>/dev/null;
- sleep 1;
- # Reloading modules from kernel
- echo "[+] Reloading modules";
- rmmod $driver;
- sleep 1;
- modprobe $driver;
- sleep 1;
- echo "[+] Taking down your card offline";
- ifconfig $interface down;
- sleep 1;
- echo "[+] Changing mac-address";
- macchanger -r $interface;
- sleep 1;
- echo "[+] Optimising wireless card for maximum power";
- iwconfig $interface mode managed;
- iw reg set BO;
- iwconfig $interface txpower 30;
- sleep 1;
- echo "[+] Bringing up wireless card online";
- ifconfig $interface up;
- echo "[+] Starting WICD... ";
- /etc/init.d/wicd start 1>/dev/null;
- sleep 1;
- echo ""
- echo "[+] All patched up and done, have a nice day! ;)";
- echo "===================================================================\n"
- exit 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement