devfs
[Top] [All Lists]

Re: error calling: "symlink" in "GLOBAL"

To: Meunier <0@xxxxxxxxxxxxxx>
Subject: Re: error calling: "symlink" in "GLOBAL"
From: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Date: Wed, 1 Aug 2001 23:21:18 -0600
Cc: devfs@xxxxxxxxxxx
In-reply-to: <20010801091110.P135@pervalidus>
References: <20010406023231.W111@pervalidus> <200104080526.f385QU906141@mobilix.atnf.CSIRO.AU> <20010408113044.I111@pervalidus.net> <200107311859.f6VIxDN00956@mobilix.ras.ucalgary.ca> <20010801091110.P135@pervalidus>
Sender: owner-devfs@xxxxxxxxxxx
0@xxxxxxxxxxxxxx writes:
> On Tue, Jul 31, 2001 at 12:59:13PM -0600, Richard Gooch wrote:
> > > On Sun, Apr 08, 2001 at 03:26:30PM +1000, Richard Gooch wrote:
> > The problem may be due to your two lines:
> >     REGISTER       vc/1    CFUNCTION GLOBAL symlink vc/1 tty1
> >     UNREGISTER     vc/1    CFUNCTION GLOBAL unlink  tty1
> > 
> > It's possible that you're repeating the "symlink vc/1 tty1" action
> > many times, because the "vc/1" regular expression will match "vc/10",
> > "vc/11" and so on, as well as the intended "vc/1". You have a number
> > of alternatives:
> >     REGISTER       vc/1$   CFUNCTION GLOBAL symlink vc/1 tty1
> >     UNREGISTER     vc/1$   CFUNCTION GLOBAL unlink  tty1
> > 
> > this will anchor the '1' at the end of the path. Or, much better to do
> > this:
> >     REGISTER        vc/1$          MKOLDCOMPAT
> >     UNREGISTER      vc/1$          RMOLDCOMPAT
> > 
> > which will use the recommended MKOLDCOMPAT and RMOLDCOMPAT actions.
> > Even better is to just use:
> > 
> >     REGISTER        vc/.*          MKOLDCOMPAT
> >     UNREGISTER      vc/.*          RMOLDCOMPAT
> > 
> > like the sample config file recommends. Why would you want to do
> > anything else?
> 
> Because I don't want 63 symbolic links in /dev if I have 4
> tty in /etc/inittab .
> 
> I thought tty1 etc. were needed to use agetty, but it worked
> with vc/1 in inittab . I don't know about mingetty, but there
> are reports about problems with devfs without compatibility
> for old device names.
> 
> Now I only have the following lines:
> 
> REGISTER        vc/0            MKOLDCOMPAT
> UNREGISTER      vc/0            RMOLDCOMPAT

And this is the recommended way to limit which compatibility entries
you get. But you should anchor the names with '$' at the end. It makes
it more explicit (and will avoid extra matches if you change the '0'
to a '1' ('0' is a special case)).

                                Regards,

                                        Richard....
Permanent: rgooch@xxxxxxxxxxxxx
Current:   rgooch@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>