1 diff -urN click-cvs.2006.03.02.old/conf/wifi/gen_config_roofnet.sh click-cvs.2006.03.02/conf/wifi/gen_config_roofnet.sh
2 --- click-cvs.2006.03.02.old/conf/wifi/gen_config_roofnet.sh 2007-05-12 09:12:48.346397229 +0100
3 +++ click-cvs.2006.03.02/conf/wifi/gen_config_roofnet.sh 2007-05-12 10:00:52.579345023 +0100
8 -mac=$(/sbin/ifconfig ath0 | sed -n 's/^.*HWaddr \([0-9A-Za-z:]*\).*/\1/p')
9 +mac=$(/sbin/ifconfig wifi0 | sed -n 's/^.*HWaddr \([0-9A-Za-z-]*\).*/\1/p'| sed 's/-/:/g' | cut -c -17)
10 # extract the bottom three octects to use as IP
12 hi_hex=$(echo $mac | sed -n 's/.*:.*:.*:\([0-9A-Za-z:]*\):.*:.*.*/\1/p')
17 -SUFFIX=$(printf "%d.%d.%d" $hi $mid $lo)
18 +SUFFIX=$(printf "%d.%d.%d" $((hi)) $((mid)) $((lo)))
23 /sbin/ifconfig $DEV txqueuelen 5
24 /sbin/ifconfig $DEV up
25 echo '804' > /proc/sys/net/$DEV/dev_type
26 -/sbin/modprobe tun > /dev/null 2>&1
27 +/sbin/insmod tun > /dev/null 2>&1
30 PROBES="2 60 2 1500 4 1500 11 1500 22 1500"