Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #182: crashme

File crashme, 0.9 kB (added by mrenzmann, 14 years ago)

Local copy of crashme script. See ticket description.

Line 
1 #! /bin/bash
2 #
3 # Warning: this script is likely to crash your system.
4 # The purpose is to demonstrate kernel panic due to bug in madwifi drivers
5
6 sync    ## we are expecting a crash;  protect disks somewhat
7
8 bindir=$( dirname $0 )
9
10 if test -z "$*" ; then
11   echo "Warning: this script is likely to crash your system."
12   echo "Usage: $0 0 1"
13 fi
14
15 for arg in $* ; do
16
17   case $arg in
18
19   0)  IFACE=ath0 wlanmode=ap \
20       essid=snark key=$(cat /etc/network/wep0.key 2>/dev/null || \
21         echo 99000000000000000000000000 )  $bindir/wifi-up
22
23       ifconfig ath0 192.168.2.1
24   ;;
25
26   1)  IFACE=ath1 wlanmode="sta nosbeacon"  \
27       essid=MacNaughton key=$(cat /etc/network/wep1.key 2>/dev/null || \
28         echo 99111111111111111111111111 )  $bindir/wifi-up
29
30       ifconfig ath1 192.168.1.5
31       route add default gw 192.168.1.1
32   ;;
33
34   *)  1>&2 echo "Unrecognized verbiage '$arg'"
35       exit 1
36   ;;
37
38   esac
39
40 done