This script is slow, bloated and is called _6 times_ per boot!!!!! It does not even cache the python output.
The script has been replaced with a python one. See Bug 478431.
Let's collapse these two bugs together. If you have any problems with the new implementation of the script, let's deal with it in the other bug. *** This bug has been marked as a duplicate of bug 478431 ***