<?xml version="1.0" encoding="UTF-8"?>  
<deviceinfo version="0.2"> 
  <device>
    <!-- cleanup symlinks in /media if needed -->
    <match key="info.udi" string="/org/freedesktop/Hal/devices/computer">
      <append key="info.callouts.add" type="strlist">hal-autofs-cleanup</append>
    </match>
    <!-- options below are used by automounter with /etc/auto.hal executable map -->
    <match key="volume.fsusage" string="filesystem">
      <match key="@info.parent:storage.hotpluggable" bool="true">
        <!-- usb disks, mmc cards -->
        <match key="volume.fstype" string="vfat">
          <append key="info.capabilities" type="strlist">autofs</append>
          <merge key="volume.autofs.mount_options" type="string">noatime,nosuid,nodev,noexec,gid=1000,uid=1000,fmask=133,dmask=022,codepage=866,utf8</merge>
        </match>
        <match key="volume.fstype" string="ext2">
          <append key="info.capabilities" type="strlist">autofs</append>
          <merge key="volume.autofs.mount_options" type="string">defaults,noatime,nosuid,nodev</merge>
        </match>
      </match>
      <match key="@info.parent:storage.removable" bool="true">
        <!-- CD/DVD discs, usb sticks formatted in iso9660 -->
        <match key="volume.fstype" string="iso9660">
          <append key="info.capabilities" type="strlist">autofs</append>
          <merge key="volume.autofs.mount_options" type="string">ro,nosuid,nodev</merge>
        </match>
      </match>
      <!-- callouts to add/remove symlinks -->
      <match key="info.capabilities" contains="autofs">
        <append key="info.callouts.add" type="strlist">hal-autofs</append>
        <append key="info.callouts.remove" type="strlist">hal-autofs</append>
      </match>
    </match>
  </device>
</deviceinfo>
