Harald Barth wrote: > A while ago Stamatis Mitrofanis wrote something about a rewrite of the > hotplug scripts to support start/stop as the *.rc scripts do. As I > think this is the right thing to do (This $REMOVE thingie looks ugly). > I wonder what happened after the mail 10/05/2001 21:13:53. > > Did someone consider the changes proposed? > Did someone get to some conclusion? If nothing else, then somebody at least do the *.agent *.rc script unification! (please?) > Someone did save that tarball? ... Well, I have... Sorry for not providing a series of patches but I started rewriting the scripts from nothing (occasionally borrowing some code from the old scripts, though, but mostly rewriting everything). I have the newest tarball included as an attachment. Take a look at it. It doesn't want to be in just my hard disk any more. I did all this because the scripts seemed a little ugly to me: * redundant .rc scripts * no uniform directory naming (.handmap .distmap .usbmap blacklist...) * ugly indenting of scripts * nonextensible, restrictive, RedHatish central hotplug.functions file * no per-subsystem configuration files or subdirectories (pesky CVS subdirs...) * no per-subsystem-driver map files (for drivers that don't provide the information internally) * USB start event not trigerred by PCI driver-specific script * didn't work well with a non-highly-modular kernel * To see the solutions I suggest, _just take a look at the scripts_. I've included a couple of example driver agents too. Also on hotplug... I set up the scripts to call wget and use a simple format for queries to automatically download drivers from some central server. It's quite a simple design, but flexible. See the scripts for more. I know I have put plenty of descriptive comments.