#!/bin/sh

CMD=$1

case $CMD in
startup)
	iwpriv eth0 monitor 1 6
	ifconfig eth0 promisc up
	;;

shutdown)
	iwpriv eth0 monitor 0 6
	ifconfig eth0 -promisc
	;;

hopper_type)
	echo "IWCONFIG"
	echo "eth0"
	;;

start_hopper)
	;;

stop_hopper)
	;;

set_channel)
	iwconfig eth0 channel $3
	;;

*)
	exit 1
	;;
esac

