Horst: Unterschied zwischen den Versionen

Aus Freifunk Potsdam | Wiki
Zur Navigation springen Zur Suche springen
Zeile 17: Zeile 17:
== horst mit atheros auf kamikaze ==
== horst mit atheros auf kamikaze ==


  wlanconfig mon0 create wlandev wifi wlanmode monitor
  wlanconfig mon0 create wlandev wifi0 wlanmode monitor
  ip link set dev mon0 up
  ip link set dev mon0 up
  horst
  horst

Version vom 24. März 2009, 13:57 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 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