Patrick C. F. Ernzer said: > --On Sunday, March 03, 2002 12:16:22 PM +0000 alex <[EMAIL PROTECTED]> > wrote: > >> After feedback yesterday (and recovering from the hangover this >> morning) I've commited the RPM changes to CVS. Could people with RPM >> based system check the rpm's build for them and are useable. Change >> summary is: > [...] > > As discussed on IRC, attached is what I use. > > What I would like input on: > * CVS contains a setup script, this is not used yet either in Alex's > rpm > nor in mine. should we call this script post-install? > * Alex's rpm puts docs in $prefix/doc/speedtouch, AFAIK the version > should be appended to the dir name, but I could be wrong > * Alex, there are 3 entries in your changelog but you are still at > release 1, I suggest incrementing release every time the spec file > changes if version stays at 1_0. > * I have not yet found an elegant way to add lines to modules.conf, > I'm > afraid this will not get bettur until all distros support the debian > way of having multiple files for module configuration
I've not had much feedback on the RPM's since I checked the latest updates into CVS. Is anyone actually using RPM's to install there system now? A few bits of houskeeping have been done (for example the SysV script and config file are now called speedtouch/speedtouch.conf, although the script is still adsl.sh in the doc-linux directory). This is mainly to stop conflicting with distro-vendors adsl implementations having a /etc/init.d/adsl The current RPM post install script basically creates a /etc/speedtouch.conf that points people to the doc directory (assuming there is not already a .conf file there). I want to make it a bit more intelligent for setting things up so here is the plan, any comments: 1. LOAD_USBCORE and LOAD_USBINTERFACE There are various ways to check if the distro already manages the usb setup. Any comments on the best test? If they succed I shall set LOAD_USB* to 0 so the /etc/speedtouch script doesn't bother. a)lsmod | grep "usb" b)chkconfig --list usb c)ls /etc/init.d | grep "usb" How many RPM based distro's explicity manage their usb interfaces with scripts? I know Mandrake does, reports please. 2. LOAD_NHDLC Again this should happen auto-magically but these tests could be used to check for it. Comments? a)lsmod | grep "hdlc" b)grep /etc/modules | grep "hdlc" c)grep /etc/modules.conf ? 3. DEFAULT_USBINTERFACE I'm not sure about this. If the LOAD_USB* varaibles are 0 it probably doesn't matter, otherwise I could do a lspci | grep "usb" and extract the adapter type, failing that default to usb-uhci? 4. MICROCODE Hopefully this problem will go away if we get distribution rights to the Thompsons microcode. Otherwise I was thinking of using locate or find / | grep "alcudsl.sys" to see if a copy exists. 5. CONFIGURED Probably should go away. The script now tests for the existence of /etc/speedtouch.conf which shouldn't be there on a manual install Other questions include so the RPM install be intercative? Should the script be in the rpm spec or and external script? What part would the doctor scripts play in this? Questions, questions :-) Alex www.bennee.com/~alex/ Liste de diffusion modem ALCATEL SpeedTouch USB Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe
