1.704
Bearbeitungen
Melle (Diskussion | Beiträge) |
Melle (Diskussion | Beiträge) |
||
Zeile 22: | Zeile 22: | ||
ip link set dev mon0 down | ip link set dev mon0 down | ||
wlanconfig mon0 destroy | wlanconfig mon0 destroy | ||
Alternative: folgendes Script nach <code>/usr/bin/horst</code> kopieren: | |||
<pre> | |||
#!/bin/sh | |||
opts= | |||
WLDEV=prism0 | |||
for opt in $*;do | |||
test -z "$WLDEV" && WLDEV=$opt || { | |||
test "$opt" != "${opt#-i}" && WLDEV=${opt#-i} || opts="$opts $opt" | |||
} | |||
done | |||
rmem=$(cat /proc/sys/net/core/rmem_max) | |||
if grep -q ath[0-9]: /proc/net/dev;then | |||
BASE=wifi0 | |||
if [ -n "$1" ] && [ -z "${1#wifi[0-9]}" ];then | |||
BASE=$1 | |||
shift | |||
fi | |||
WLDEV=ath9 | |||
wlanconfig $WLDEV create wlandev $BASE wlanmode monitor >/dev/null | |||
ip link set dev $WLDEV up | |||
/usr/sbin/horst -i $WLDEV $opts | |||
ip link set dev $WLDEV down | |||
wlanconfig $WLDEV destroy | |||
else | |||
wl monitor 1 | |||
/usr/sbin/horst -i $WLDEV $opts | |||
wl monitor 0 | |||
fi | |||
echo $rmem>/proc/sys/net/core/rmem_max | |||
</pre> | |||
[[Kategorie:Router]] | [[Kategorie:Router]] |
Bearbeitungen