Re: Run script on USB thumb drive connection



On Tue, Feb 17, 2009 at 12:25:40AM -0000, Cameron Hutchison wrote:

I have created the file /etc/hal/fdi/policy with the following contents:

Adjust the UUIDs for your case.

---8<---
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->

<!--
System policy to not automount the backup disks.
-->
<deviceinfo version="0.2">

<!-- Backup disc 1 - Seagate ST3160811AS 7200.9 160GB -->
<device>
<match key="volume.uuid" string="854a1d9e-916d-46af-9ba3-ae0fab3644ab">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</device>

Thanks Cameron,

How do determine the UUID for the device?


Do you have any pointers to docs on this?

I've been looking over:

http://opensolaris.org/os/project/tamarack/hal_re.html

--
Bill Moseley
moseley@xxxxxxxx
Sent from my iMutt


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users