Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Dec 2005 12:23:26 -0500
From:      Anish Mistry <mistry.7@osu.edu>
To:        freebsd-stable@freebsd.org
Cc:        "\[LoN\]Kamikaze" <LoN_Kamikaze@gmx.de>
Subject:   Re: devfs doesn't set access rights
Message-ID:  <200512131223.56159.mistry.7@osu.edu>
In-Reply-To: <20051213165416.GE71643@pc5-179.lri.fr>
References:  <439EF8B5.4030702@gmx.de> <20051213165416.GE71643@pc5-179.lri.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart4681211.6sWLXLe4Yc
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Tuesday 13 December 2005 11:54 am, Marwan Burelle wrote:
> On Tue, Dec 13, 2005 at 05:37:09PM +0100, [LoN]Kamikaze wrote:
> > On my FreeBSD 6-stable (the last build is less then 24hours ago)
> > my devfs doesn't apply permissions set in /etc/devfs.conf when I
> > attach new devices. I have to call:
> > /etc/rc.d/devfs restart
> > manually for the settings to be applied. This is rather
> > uncomfortable in some cases (especially with my PDA).
> >
> > I don't know weather this is the normal behaviour, anyway if it
> > is, shouldn't devfs be restarted automatically as soon as
> > external devices (usb, firewire, ir) are attached?
>
> It is the normal behaviour, /etc/rc.d/devfs is a little script that
> parse /etc/devfs.conf and according to it and what it find in /dev
> it set permissions or create links, it's purely static.
>
> One possibility is to call /etc/rc.d/devfs when a device is
> attached in /etc/devd.conf (take a look at devd(8) and
> devd.conf(5))
>
> For exemple, I have something like this in my /etc/devd.conf :
>
> attach 100 {
>     device-name "umass[0-9]+" ;
>     action "/bin/sleep 3; /etc/rc.d/devfs restart" ;
> };
>
> "attach" : what kind of event
> "100" : as usual, for ordering rules
> "device-name ..." : the device concerned
> "action ... " : what to do, here I use sleep, because action is
> called when the attach event arrives, not when the device node is
> created.
>
> There maybe a better way, but "it works"=A9 ;)
You should be using /etc/devfs.rules

Search the mailing list for examples and setup.

=2D-=20
Anish Mistry

--nextPart4681211.6sWLXLe4Yc
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQBDnwOsxqA5ziudZT0RAkpqAKCWzcCC0dLMc/SZZFgNyQJtu48zmQCdEdFS
Ur8l9BBrJ0xq4Ps6O6Lghrs=
=T2ks
-----END PGP SIGNATURE-----

--nextPart4681211.6sWLXLe4Yc--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512131223.56159.mistry.7>