#!/bin/sh IFACE="" KISMET=/etc/kismet/kismet.conf CH=$3; [ x$3 = "x" ] && CH=10 which iwpriv > /dev/null 2> /dev/null || { echo Wireless tools not found ; exit ; } echo -e "\nusage: `basename $0` [channel]\n" echo -e "Interface\tChipset\t\tDriver\n" function startStdIface() { iwconfig $1 mode monitor 2> /dev/null >/dev/null iwconfig $1 channel $2 2> /dev/null >/dev/null iwconfig $1 key off 2> /dev/null >/dev/null ifconfig $1 up echo -n " (monitor mode enabled)" }