#!/bin/bash iwconfig $WLANMANAGE mode ad-hoc iwconfig $WLANMANAGE essid cpemgr iwconfig $WLANMANAGE channel 1 iwconfig $WLANMANAGE enc off ifconfig $WLANMANAGE $MGRIP netmask 255.255.255.0 # localhost may be a better way of describing the following line. :/ route add default gateway $MGRIP iperf -s -D iperf -s -u -D