I'm planning to use my Pi as a wireless NAS and use with XBMC on my childrens Android pads. The Pi is configured with two wireless adapters, one (wlan1) that is configured with static IP-address and configured as accesspoint. The other should try to connect to specific accesspoints or find open networks. How could i configure this setup and make it reconfigure automatically if "better" connections are avaliable:
1 st choice: eth0
2 nd choice: wlan0 SSID "home" password "Secret123"
alt. 2 nd choice: wlan0 SSID "work" password "MoreSecret123456"
3 rd choice: wlan0 SSIS "3GAccessPoint" password "MyCell123"
4 th choice: wlan0 any open wireless network