here is how to setup your R1 for bridged wired to wifi mode.. please excuse any typos.
you will need the program PUTTY
http://www.putty.org/you CANT break anything. if something doesnt go right, just hold the reset button down for 5 seconds and start over.
special thanks to LDP who showed me how to add packages.. without that help we would be stuck.
step 1, hook up the R1 to your internet router.. make sure dhcp is enabled..
go in and find the IP your router gave it..
step 2, log into the router.. username root, password root..
you should come up to a screen just like any other bitmain device..
first thing, go under miner and set your bitmain username and hit save and apply.. it would suck to find a block and not get counted for it.. its a long shot, but it could happen.
then go under system, software and configuration and change the url to this and hit submit. nothing happens so dont worry.
http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/now go back to actions and update list. go to available packages and search for
luci-proto-relay install it.. this should install both of the packages you need.
Installing luci-proto-relay (0.11.1-1) to root...
Downloading
http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages//luci-proto-relay_0.11.1-1_ar71xx.ipk.
Installing relayd (2011-10-24-4e8f1fa4ca2b176500362843a9e57ea5abd4b7a3) to root...
Downloading
http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages//relayd_2011-10-24-4e8f1fa4ca2b176500362843a9e57ea5abd4b7a3_ar71xx.ipk.
Configuring relayd.
Configuring luci-proto-relay.
step 3, go into network, then wifi.. and remove the default wifi settings..
step 4, hit scan and connect to your home wifi.. leave all options default, just insert password, assign it to the LAN firewall, hit submit, then save and apply..
step 5, go into network, interfaces and choose the WWAN one and edit it.. change the protocol to static and insert an IP, netmask (255.255.255.0), your gateway (usually 192.168.1.1 or 10.0.0.1) and dns (google is 8.8.8.8 comcast is 75.75.75.75). leave DHCP OFF. hit save and apply.
it seems to get stuck here, saying waiting for changes to apply... you probably will have to click on status and it will ask you to relog in..
step 6, go into network, WAN, under firewall settings, put it in the LAN firewall. again it might get stuck. relog in, go to network, then firewall and choose accept for all the of the LAN dropdowns.
at this point you need to reboot the R1 (just unplug and plug it back in), unplug your LAN and connect your web browser to the IP you assigned the WWAN.
step 7, go into network, WAN and edit. change the protocol to static and put this IP in.. 192.168.2.1 and 255.255.255.0 as netmask, then 192.168.1.1 as gateway and dns 8.8.8.8 or 75.75.75.75 (change to 10.0.0.1 if this is what you use) hit save and apply.
again it might get stuck.. just hit status and relog in.
step 8, go into network, interfaces, add new interface, name it relay, choose Relay bridge as the protocol and hit submit. you will then choose to relay between networks WAN and WWAN. Do not worry about the ipv4 address, leave it blank and hit save and apply.
again it might get stuck.. just hit status and relog in.
reboot the r1 by unplugging it and plugging it back in.
now this is where things get a little tricky.. you need to enable the relayd we installed in step 2..
using putty.. log into the R1 issue this commands.
/etc/init.d/relayd enable
/etc/init.d/dnsmasq restart
/etc/init.d/firewall restart
reboot
at this point you can be done and it will work in wired to wifi bridge mode..
but if you also want wifi to wifi bridge keep going..
step9, go into network and WIFI and ADD wifi device. name it anything you want, something DIFFERENT then your home wifi. mode access point. check the create box and name it WWANB, dont forget securty, and hit SAVE..
now you should see a new interface WWANB.. select it and hit edit and go to advanced settings and check the box, then assign it to the LAN firewall and hit SAVE
now edit the relay interface and add wwanb to it.. save and apply..
at this point you will probably get kicked off the R1s IP it will display web page not available... because we just setup a new wifi and well it kind changed a few things internally.. you gotta just reboot it.
you should have a fully functioning wireless bridge with wireless relay.