3 # use this script to do severe and brutal crash testing.
4 # and make sure to load the driver AFTER having started the script,
5 # and also make sure to eject/insert the card multiple times for even more fun...
6 # all that's left for me to say is: Good luck! And don't forget to save your work! ;-))
8 echo Run this
script in one terminal
, then load the driver module
in another one.
10 echo I will delay
for 10 seconds now. You may use this
time to abort or switch to a logging console...
14 IWC
="/sbin/iwconfig $IFACE"
15 IFC
="/sbin/ifconfig $IFACE"
23 CMD
="$IWC mode Managed"
26 CMD
="$IWC mode Ad-Hoc"
29 if [ $USE_RANDOM = 1 ]; then
31 echo getting
$LEN bytes random data
32 ESSID
=`dd if=/dev/urandom bs=1 count=$LEN`
34 ESSID
=sdfkjgsdfdaSD
/cSZDFgdlkrdtjhfacklsjczxc
/vb.x?FG?
36 CMD
="$IWC essid $ESSID"
39 if [ $USE_RANDOM = 1 ]; then
41 echo getting
$LEN bytes random data
42 NICK
=`dd if=/dev/urandom bs=1 count=$LEN`
44 NICK
=sdfkjgsdfdaSD
/cSZDFgdlkrdtjhfacklsjczxc
/vb.x?FG?
46 CMD
="$IWC essid $NICK"
50 CMD
="$IWC channel $CHAN"
67 logger
"probing: $CMD"
68 [ "$DELAY" -gt 0 ] && sleep $DELAY