Horst: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
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]] |
Version vom 23. März 2009, 20:36 Uhr
Terminal
horst farbig starten:
TERM=xterm-color horst
horst mit broadcom auf kamikaze
opkg update opkg install horst wlc monitor 1 horst -i prism0 wlc monitor 0
(von hier)
horst mit atheros auf kamikaze
wlanconfig mon0 create wlandev wifi wlanmode monitor ip link set dev mon0 up horst ip link set dev mon0 down wlanconfig mon0 destroy
Alternative: folgendes Script nach /usr/bin/horst
kopieren:
#!/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