<?xml version="1.0" encoding="UTF-8"?>
<halevt:Configuration version="0.1" xmlns:halevt="http://www.environnement.ens.fr/perso/dumas/halevt.html">

<halevt:Device match="hal.block.device &amp; hal.block.is_volume = true &amp; (hal.volume.policy.should_mount = true | ((! hal.volume.policy.should_mount = false) &amp; (hal.block.storage_device.hal.storage.policy.should_mount = true | ((! hal.block.storage_device.hal.storage.policy.should_mount = false)  &amp; (hal.block.storage_device.hal.storage.hotpluggable = true | hal.block.storage_device.hal.storage.removable = true)))))">
   <halevt:Insertion exec="halevt-mount -u $hal.udi$ -m 002"/>
</halevt:Device>

<halevt:Device match="hal.block.device &amp; hal.block.is_volume = true &amp; hal.volume.mount_point">
   <halevt:Property name="hal.volume.is_mounted">
      <halevt:Action value="true" exec="halevt-mount -s"/>
      <halevt:Action value="true" exec='rox-plug add "$hal.volume.mount_point$"' />
   </halevt:Property>
</halevt:Device>

<halevt:Device match="hal.*">
     <halevt:Removal exec="halevt-umount -u $hal.udi$; halevt-umount -s"/>
     <halevt:Removal exec='rox-plug remove "$hal.volume.mount_point$"' />
</halevt:Device>

</halevt:Configuration>
