� ���, 08.07.2002, � 21:59, Florent BERANGER �������:
> 
> > - your alias is wrong for Mandrake. char-major makes no
> sense for devfs,
> > please check what device nodes are registered under
> devfs and use
> >
> > alias /dev/lirc??????? lirc_serial
> 
> yes, the device file is /dev/lirc, I'll take a look too at
> that (it works what the actual but if I can do proper ;)
> 

Strictly speaking device file is not /dev/lirc; it is 

/dev/lirc/%d
/dev/lirc/parallel
/dev/lirc/serial
/dev/lirc/sir

I already have seen report in NG about lirc device naming problem, it
appears that "standard" name is really /dev/lirc. I presume (actually I
am sure) you have manually created it and it is the reason why it works
for you with this char-major alias. Please do not release it in this
form, it is incorrect. What you have to do is

- put proper aliases in modules.conf. I do not know details about how
lirc works but loading lirc_serial creates /dev/lirc/serial and I
presume it the user-visible name so you need

alias /dev/lirc/serial lirc_serial

Because names may vary you have to create convenience link (so users
have always the same name to use) i.e.

- put proper config file under /etc/devfs/conf.d. Something like
lirc.conf with

REGISTER ^lirc/serial$ CFUNCTION GLOBAL symlink $devname lirc0
UNREGISTER ^lirc/serial$ CFUNCTION GLOBAL unlink lirc0

or pick up any other name instead of lirc0 (lirc plain is already taken
:-) Pixel, do we have any convenience functions in libDrakX?

- do not forget adding device entries to /etc/security/console.perms.

You see it is more than just adding two lines to modules.conf :))

> >
> > as example (I do not know how lirc names its devices).
> >
> > - no backup of modules.conf is made.
> >
> > Oh, and we do not seem to have lirc in standard kernel?
> >
> I have a std kernel (cooker snapshot ISO) and it works fine.
> 

yes it is in third party.

-andrej

Reply via email to