Comment 1 for bug 116981

Revision history for this message
Matteo Z (matteozandi) wrote :

Patch attached, diffed to version 0.20

After applying the patch, I get:
$ sudo ./restricted-manager --list
warning: not considering manually disabled modules: fglrx
modinfo: could not open /lib/modules/2.6.20-15-generic/volatile/fglrx.ko: No such file or directory

This is actually not a fix, but at least the user is warned.

The best fix, in my opinion, would be to create in DefaultHandler class a new method for enabling modules in case user requests it. Current approach (0.20) fails because if the module is disabled it is not considered at all and the program quits without informing the user in a proper way. This would require some more work, that I'm willing to take, if you guys thinks it is correct to do so.