Re: Adding custom module to modules.conf

Jens.Toerring_at_physik.fu-berlin.de
Date: 10/04/04


Date: 4 Oct 2004 13:32:07 GMT

John <red0356@yahoo.com> wrote:
> First and foremost, thanks to both of you for your quick replies - I
> hope I will gain enough knowledge to help others.

> Modifying the modules.conf file to both of your suggestions worked:
> alias char-major-253 <driver name>

> My attempt was not to rely on the major number being 253, because my
> kernel module dynamically obtains this major number during init. I
> thought specifying the device node name instead of char-major-# would
> provide this capability. What is the preferred method for dealing
> with modules that have dynamic major numbers?

Have a script that loads it on e.g. boot and then creates the device
file(s) with the correct major device number you get from scanning the
file /proc/devices for the module name. Have another script (or the
same script when invoked with a different argument) that removes the
device files on shutdown. Rather easy to realize with a small script
in /etc/init.d.
                                     Regards, Jens

-- 
  \   Jens Thoms Toerring  ___  Jens.Toerring@physik.fu-berlin.de
   \__________________________  http://www.toerring.de


Relevant Pages

  • Re: Promise Fasttrak 100 PDC20267 on Debian
    ... Does this get added with the testing distribution or ... you can get a script to create the device files from there: ... To UNSUBSCRIBE, email to debian-user-request@lists.debian.org ...
    (Debian-User)
  • Re: Script error in OE6 html email
    ... That makes sense in that it only happens in replies and not new ... It could be that one of those is including the script as a means to ... When it arrives in her inbox, the line of code has been added. ... ::: As well any original emails are from the default account. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • [HPADM] SUMMARY: Parse file using awk
    ... I received three replies and I ended up using Brett Geer's Script. ... like to add the size and no of files column to get a grand total. ... I am looking for a simple awk snippet. ...
    (HP-UX-Admin)
  • Re: inserting dot
    ... > thanks for your replies, I looked into the substr thingy, and made ... > this little script.. ... but i'm getting this strange error message: ...
    (comp.lang.perl.misc)
  • Re: Can I modify the date headers in received messages?
    ... sent (replies) in the same folder, and want those replies to be listed ... The script worked great as an application but for some reason I ... > set currentMessages to the current messages ... > repeat with theMsg in the currentMessages ...
    (microsoft.public.mac.office.entourage)