2 PATH
=/bin
:/usr
/bin
:/sbin
:/usr
/sbin
:/jffs
/sbin
:/jffs
/bin
:/jffs
/usr
/sbin
:/jffs
/usr
/bin
:/mmc
/sbin
:/mmc
/bin
:/mmc
/usr
/sbin
:/mmc
/usr
/bin
:/opt
/sbin
:/opt
/bin
:/opt
/usr
/sbin
:/opt
/usr
/bin
7 mac_list
="00:0D:67:15:2D:82
30 wl_mac
=$
(nvram get wl0_hwaddr
)
33 echo "*** Interrupted ***"
39 echo "Spoofing ${wifi} to $1 for ${relay_time} seconds..."
41 ifconfig
${wifi} hw ether
$1
51 echo "Restoring ${wifi} to ${wl_mac}"
53 ifconfig
${wifi} hw ether
${wl_mac}
61 trap ctrl_c SIGINT SIGTERM
63 sel
=$
(echo "$mac_list" |
awk -v n
=\"$max\" 'BEGIN{ srand(); } { a[i++]=$0 } END { while(j<$n) { r=int(rand()*i); if( r in a ) { print a[r]; delete a[r]; j++; } } }')