2. good thing it does not, how would you know its a trusted network someone else could make he's own open network and put up af dns server to phish your information or just listning in on your data transfer.
While I thank you for the script, we seem to be losing the point of this very thread, so let me recap/restate the situation and see if that helps generate an actual viable solution:
1. For reasons that are irrelevant, the only place I can connect to the internet is a local Starbucks whose routers may be junk, or may be misconfigured, or both. They have two routers (both are open/public wifi hotspots with the identical SSID "BTOpen" and appearing on channel 11). These account for 2 of up to 15 allegedly available wireless connections (the rest of which I don't have authorization to use) and when wifi.sh runs there is way of predicting what number I will need to type to use one and there is no way to for wifi.sh to remember that this is a wireless connection that I am willing to (and under the circumstances, must) use.
2. For some reason when connecting to this wireless network, my computer is constantly, repeatedly being dropped, which Tinycore's wifi pays no attention to. Applications using the network start to fail and only once I personally observe this can I restart the connection, which must be performed completely and annoyingly manually.
3. Using other operating systems (e.g. Windows and Puppy Linux) and their default wireless adapter drivers and default network managers, seem to realize this failure promptly and fix the connection in the background, often before applications realize they can't connect to the internet and fail. However, because my laptop is an antiquated piece of junk with limited resources, I would prefer to use Tiny Core because aside from networking, I see significant improvements towards how my computer performs while web browsing (which is the main purpose I have for this machine).
4. I realize and accept the risks of using Starbuck's open network for the limited activity I intend to use this machine at this location. I don't wish to constantly tell my computer that this is okay and am willing to accept the risk of having it automatically connect to Starbucks wifi without reiterating the dialog. Should I my circumstance change, I'll make sure that I don't connect to some unlikely trap that someone is spoofing Starbuck's wifi just in case someone who uses it comes along. Meanwhile, if the second BTOpen at Starbucks is actually a spoof, I have no way of knowing the difference and would anyway not treat either as a secure connection.
(Post made from within Puppy Linux because I'm getting fed up with the lack of useful support I'm getting on this issue and don't wish to spend half my day manually reconnecting to the network.)