Can external firewire hotplug trigger an action

Bas van der Lei pubmail at xs4all.nl
Wed Dec 29 12:10:46 UTC 2004


CB:
> I want a script to be triggered to run when my external firewire HD is
> plugged in and automatically mounted (actually I just need one of
> the /etc/init.d/ scripts to be run as one of the services depends on the
> external HD being plugged in).
> 
> Is this possible?

I don't know if it's possible for firewire (ieee1394) hardware. But I
can give you the procedure for USB devices, maybe it is of some use in
your search.

You need to add the USB device ID to: 
/etc/hotplug/usb.usermap
Like this:
logitechmx310 0x03 0x046d 0xc01b 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
                   ^^^^^^ ^^^^^^

Then place a similarly named script in:
/etc/hotplug/usb/
Like this:
/etc/hotplug/usb/logitechmx310

Hope it helps.

-- 
Greets,

Bas van der Lei <pubmail at xs4all.nl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dit berichtdeel is digitaal ondertekend
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20041229/ff493672/attachment.sig>


More information about the ubuntu-users mailing list