script to Auto connect to Open 802.11 wireless AP's ***DOESNT WORK*** i think something is wrong with the driver and it doesnt reset properly with this procedure, anyone else test re-associating with separate aps manually?

script to Auto connect to Open 802.11 wireless AP's ***DOESNT WORK*** i think something is wrong with the driver and it doesnt reset properly with this procedure, anyone else test re-associating with separate aps manually?

wifiweasel v2 -
once run this script takes control of the wireless interface, then
detects and connects to strongest open wifi AP in the vicinity.
Subsequently it checks the connectivity every X seconds. If the connection fails, the
whole process repeats itself; this requires the timeout script below

Looking carefully through the code there seemed to be logical errors in the control structure of the program. This version is supposed to be logically similar without the recursive function calls. I have made very limited use of it but am submitting it here in case its useful for others. I call it wifiweasel3.sh It also uses environment variables instead of temporary files, which may or may not be a good thing.

1) Copy it to your phone,
2) chmod +x wifiweasel3.sh
3) ensure that you have the timeout program above copied and executable.
4) Run it - At first you can try
wifiweaselv3.sh -v
which gives you a verbose account of what is happening.
you can also do
wifiweasel start
and wifiweasel stop
which keeps it silently backgrounded.

FAIL

script to Auto connect to Open 802.11 wireless AP's ***DOESNT WORK***

wifiweasel

wifiweasel v2 -
once run this script takes control of the wireless interface, then
detects and connects to strongest open wifi AP in the vicinity.
Subsequently it checks the connectivity every X seconds. If the connection fails, the
whole process repeats itself; this requires the timeout script below

comments

not sure but i think one has to make the /tmp/ files manually

fixed as of v2

Am Improved Version Of wifiweasel

Looking carefully through the code there seemed to be logical errors in the control structure of the program. This version is supposed to be logically similar without the recursive function calls. I have made very limited use of it but am submitting it here in case its useful for others. I call it wifiweasel3.sh It also uses environment variables instead of temporary files, which may or may not be a good thing.

1) Copy it to your phone,
2) chmod +x wifiweasel3.sh
3) ensure that you have the timeout program above copied and executable.
4) Run it - At first you can try
wifiweaselv3.sh -v
which gives you a verbose account of what is happening.
you can also do
wifiweasel start
and wifiweasel stop
which keeps it silently backgrounded.