From f7ad2a53d64d769ef5be814f0e8b3d91af3cf199 Mon Sep 17 00:00:00 2001 From: Mike Albon Date: Sat, 12 May 2007 10:59:03 +0000 Subject: [PATCH] This patch removes the need for ath0 to be defined. Also fixes the tun module being loaded, and the ip address generation. SVN-Revision: 7196 --- net/click/patches/200-roofnet_fix.patch | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 net/click/patches/200-roofnet_fix.patch diff --git a/net/click/patches/200-roofnet_fix.patch b/net/click/patches/200-roofnet_fix.patch new file mode 100644 index 0000000000..25355d4513 --- /dev/null +++ b/net/click/patches/200-roofnet_fix.patch @@ -0,0 +1,30 @@ +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 +--- click-cvs.2006.03.02.old/conf/wifi/gen_config_roofnet.sh 2007-05-12 09:12:48.346397229 +0100 ++++ click-cvs.2006.03.02/conf/wifi/gen_config_roofnet.sh 2007-05-12 10:00:52.579345023 +0100 +@@ -12,7 +12,7 @@ + fi + + +-mac=$(/sbin/ifconfig ath0 | sed -n 's/^.*HWaddr \([0-9A-Za-z:]*\).*/\1/p') ++mac=$(/sbin/ifconfig wifi0 | sed -n 's/^.*HWaddr \([0-9A-Za-z-]*\).*/\1/p'| sed 's/-/:/g' | cut -c -17) + # extract the bottom three octects to use as IP + + hi_hex=$(echo $mac | sed -n 's/.*:.*:.*:\([0-9A-Za-z:]*\):.*:.*.*/\1/p') +@@ -23,7 +23,7 @@ + mid="0x$mid_hex"; + lo="0x$lo_hex"; + +-SUFFIX=$(printf "%d.%d.%d" $hi $mid $lo) ++SUFFIX=$(printf "%d.%d.%d" $((hi)) $((mid)) $((lo))) + WIRELESS_MAC=$mac + SRCR_IP="5.$SUFFIX" + SRCR_NM="255.0.0.0" +@@ -40,7 +40,7 @@ + /sbin/ifconfig $DEV txqueuelen 5 + /sbin/ifconfig $DEV up + echo '804' > /proc/sys/net/$DEV/dev_type +-/sbin/modprobe tun > /dev/null 2>&1 ++/sbin/insmod tun > /dev/null 2>&1 + + MODE="g" + PROBES="2 60 2 1500 4 1500 11 1500 22 1500" -- 2.30.2