#!/bin/sh# /usr/sbin/horst.sh if lsmod | grep -q ath[0-9];then BASE=wlan0 if [ -n "$1" ] && [ -z "${1#wlan[0-9]}" ];then BASE=$1 shift fi WLDEV=mon0 iw dev $BASE interface add $WLDEV type monitor >/dev/null horst -i $WLDEV $* iw dev $WLDEV del # cleanupelse horst $*fi