communication between UDEV and HALD
Matthew Garrett
mjg59 at srcf.ucam.org
Wed Sep 24 08:01:36 PDT 2008
On Wed, Sep 24, 2008 at 03:58:49PM +0100, John Tapsell wrote:
> Reading between the lines of Garrett is saying, I think what happens
> is that Hal basically detects the event of a new CD being entered and
> runs a script to mount the CD. The program 'mount' is called, and
> this tells the kernel to mount the drive. The kernel does so and
> updates /proc/mtab. Udev now sees that /proc/mtab has changed, scans
> it, and realises that the CD has been mounted. Udev does emits a
> mount event.
Almost. hal doesn't run anything itself, but sends an event over dbus to
another application (which will vary depending on your desktop). That
then does the actual mounting, which generates the mount event. If hal
isn't running, there's no way for the automounting application to
receive that event.
--
Matthew Garrett | mjg59 at srcf.ucam.org
More information about the hal
mailing list