sun wrote:I've tried to write code into wicd's monitor to check for this case, and have had luck with auto-reconnect, but it also seems to break code in the gui.py. The issue now is that wicd-client displays the connect button while it is currently connected instead of the disconnect button. If I can get by this I will try to post something.
-sun
... and here it is. It's simple and crude, but wicd will now drop connection and try to reconnect if your iwconfig Access Point: value changes to anything other than a valid MAC Address (ie. "Not-Associated")
Since multiple files needed to be edited for this one, I've decided to post it as a modified installer tarball. The good news is, by installing this, you don't have to worry about any of my other patches because they're already in here. Should you wish to try this out, I have provided basic install instructions below. It's a pretty simple tarball install.
Intructions:
( * ) = must be done as logged in as root, or through a su - or sudo console
Step 1*: Backup and delete all files located in /usr/lib/wicd/
Step 2*: Backup and delete all files located in /usr/lib/python2.x/site-packages/wicd/ <-- x could be 4 or 5 depending on python version installed
Step 3: In console, extract tarball with the command tar-zxvf wicd-1.5.9_patched.tar.gz <-- this will extract the files to a folder called wicd-1.5.9_patched
Step 4: In console, type cd wicd-1.5.9_patched to enter that folder
Step 5: In console, type python ./setup.py configure <-- this will gather information about your system and prep for install
Step 6: If not done already, type su - and when prompted, type your root password to root yourself
Step 7*: In console, type python ./setup.py install <-- this will copy all the files to where they need to be
Step 8: Finally. reboot
*disclaimer* -- This tarball is provided "as-is." Although I have tested it on my system following the instructions above, I cannot guarantee that it will work on your system. I will also not be held accountable for any damage YOU do using this file. That said, if it doesn't work let me know and I may be able to get it going.
-sun