Comment 3 for bug 761326

Here (https://bugs.launchpad.net/wicd/+bug/783625/comments/4) you can find a script that should automatically solve this problem.
Let me know if you have some problems with it.