Horst
Aus Freifunk Potsdam
Inhaltsverzeichnis |
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 wifi0 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
horst mit atheros auf Backfire
manuell
iw dev wlan0 interface add mon0 type monitor horst -i mon0 iw dev mon0 del
Skript
Alternativ kann auch folgendes Script nach /usr/sbin/horst.sh kopiert werden: http://paste.sokai.name/v/4efca6961b1a7
Metainfo
- Diese Seite wurde zuletzt am 3. Januar 2012 um 16:21 Uhr geändert.
- Diese Seite wurde bisher 1.352-mal abgerufen.
- Der Inhalt ist verfügbar unter der Lizenz GNU Free Documentation License 1.2.
- Datenschutz
- Über Freifunk Potsdam
- Impressum