This

From OLPC
Revision as of 16:24, 3 June 2008 by 128.182.156.51 (talk) (quick and dirty script to enable/disable network sniffing on olpc)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
  1. !/bin/sh

case $1 in e|-e) ifconfig msh0 down ifconfig eth0 down /sbin/service NetworkManager stop export TRAFFIC_MASK=0x7 echo $TRAFFIC_MASK > /sys/class/net/eth0/device/libertas_rtap ifconfig rtap0 up

d|-d) ifconfig rtap0 down export TRAFFIC_MASK=0x0 echo $TRAFFIC_MASK > /sys/class/net/eth0/device/libertas_rtap /sbin/service NetworkManager start ifconfig msh0 up ifconfig eth0 up

  • )

echo "USAGE: sh capture.sh e|d"

esac