I'm trying to create a package for the usb-storage module and scripts.
I plan to use the postinst (probably) to decide whether or not to install a certain module (for example if I'm installing on a machine with a PXA processor it won't need the sa1100_bi module.
What's the best way to do this? Can I just not install it, or do I have to install it then delete it in the postinst script?
Along the same lines but more complicated, if I needed to replace a script on only one machine how would I do this? Create a copy in the preinst, then have ipkg overwrite it, then copy the copy back over the one ipkg has extracted using the postinst script?
There are obviously ways and means, but is this the way things are done?
Is there a web site which describes this sort of thing (prsumably for debian dpkg).
Another quick one, is there a quick and easy way to differentiate between machines. Processor is probably fairly easy (look in /proc/cpuinfo), what about ROM type, do I just have to find a file which exists on one and not another?