#!/bin/sh
# this script expects the mac address as param one, ssid associated with as param two
# then optionally the IP address as param three

if [[ "$3" == "" ]] 
then
	echo "assoc " $1 $2 >> /tmp/something
else
	echo "dhcp " $1 $2 $3 >> /tmp/something
fi
