#!/bin/bash ESSID=broembroem KEY=8cbb94aedb [ -z $2 ] && "usage $0: " && exit 1 # set mac address # ifconfig $1 down # ifconfig $1 hw ether 00:01:02:03:04:05 # make sure if is up ifconfig $1 up # configure adhoc mode iwconfig $1 ap 00:12:17:81:44:CD iwconfig $1 \ mode Ad-Hoc \ channel 1 \ essid $ESSID \ key $KEY # share connection HERE=`dirname $0` exec $HERE/masq $1 $2