Package: discover
Version: 2.0.7-1
Severity: wishlist

On Tue, 2005-02-08 at 12:43 -0300, Iouri Atiounkine - Pixart wrote:
> Jeff Licquia wrote:
> >>  How I can make that user driver daemon start and stop with Discover?
> > 
> > You can't, not with the current infrastructure.  However, creating this
> > infrastructure should not be hard if you're handy at shell scripting and
> > XML.
> > 
> > The first thing would be to figure out how to represent the information
> > you want in the database.  Basically, you want to be able to start a
> > script in /etc/init.d if some hardware is present.  Perhaps something
> > like this would work:
> > 
> > <device ...>
> >   <data class="initscript">
> >     <data class="name">Intel537ep</data>
> >   </data>
> > </device>
> > 
> 
> Here is a content of device file with modems that need to run a initscript :
> 
> ********** /src$ cat debian/discover/pci-device-initscript.xml
> 
> <?xml version='1.0' encoding='UTF-8'?>
> <device_list bus='pci'>
>    <device busclass='0000' model='1080' vendor='8086' 
> model_name='Intel537EP software modem'>
>      <data class='linux'>
>        <data class='initscript'>
>          <data class='name'>537_boot</data>
>        </data>
>        <data class='last-updated'>2005-02-08</data>
>        <data class='last-updated-by'>[EMAIL PROTECTED]</data>
>      </data>
>    </device>
>    <device busclass='0000' model='1033' vendor='14f1' 
> model_name='Conexant HCF 56K Data/Fax Modem'>
>      <data class='linux'>
>        <data class='initscript'>
>          <data class='name'>hcfpci</data>
>        </data>
>        <data class='last-updated'>2005-02-08</data>
>        <data class='last-updated-by'>[EMAIL PROTECTED]</data>
>      </data>
>    </device>
>    <device busclass='0000' model='545a' vendor='10b9' 
> model_name='Smartlink 563 Software 56K Data/Fax Modem'>
>      <data class='linux'>
>        <data class='initscript'>
>          <data class='name'>slmodemd</data>
>        </data>
>        <data class='last-updated'>2005-02-08</data>
>        <data class='last-updated-by'>[EMAIL PROTECTED]</data>
>      </data>
>    </device>
> </device_list>
> 
> **********
> I think we need to include this device file in Discover.
> Is not complete now, but I can to put more than 20 different modems in 
> this file.

Well, maybe.  If we're going to make discover do init scripts, or
something like that, then I want to make sure we are thorough about it.

For example, in your data, you put the scripts under "linux".  Does that
mean that we won't support BSD?  Or will the scripts be so different
that they need to be kept separate?  Also, will the names of the scripts
be different under different Linux distributions?

This doesn't mean that you can't start using your data.  Look in the
documentation for creating a complete data set and for how to tell
discover to use it.  If you can't figure this out, let us know on the
list and someone (probably me) will write something up.

I'm filing this as a wishlist bug against discover, so we don't forget
about it.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to