I don't think postinst is the best option. All the work should be done at runtime with l-r-m IMHO. With the detection been done at runtime would be possible to have nvidia + fglrx installed at the same machine. This is really usefull for livecds and usb-hd (I have one with feisty installed that I use at my notebook - ati 200m, don't supported by oss ati driver - and at my fathers pc - gforce 4 - and at my fathers notebook - i915). r-m would just blacklist the modules if oss drivers are selected.
This can be done by letting l-r-m dpkg-diverting the libs and modules. But I don't know how much time this takes. Maybe is not a viable solution. -- u-m should automatically install nvidia-glx-legacy if hardware requires it https://launchpad.net/bugs/96486 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs