Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Jul 2010 11:25:45 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Samuel =?iso-8859-1?Q?Mart=EDn?= Moro <faust64@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Running a script after a device's been plugged
Message-ID:  <44r5jje0au.fsf@lowell-desk.lan>
In-Reply-To: <AANLkTik31MqFELyyP64xNwMqmLJhGjzzShUzrItYv_ey@mail.gmail.com> ("Samuel =?iso-8859-1?Q?Mart=EDn?= Moro"'s message of "Fri, 2 Jul 2010 16:05:31 %2B0200")
References:  <AANLkTik31MqFELyyP64xNwMqmLJhGjzzShUzrItYv_ey@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Samuel Mart=EDn Moro <faust64@gmail.com> writes:

> 3) Last but not least, how to link a device once it's plugged in, and unl=
ink
> it once it's unplugged?
> We're still providing 5.4 and 6.2 releases based versions. And I do not l=
ike
> hal.
> So I thought I could use /etc/devd.conf, with attach/detach directives, a=
nd
> their actions calling a script that would create/delete the links.
> Is there a cleaner way to do it? Would it be still usable in 8.x? (9.x?)

That's exactly what devd is for.  Go ahead and use it.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44r5jje0au.fsf>