diff options
Diffstat (limited to 'noarch/etc/smfp.fdi.in')
-rwxr-xr-x | noarch/etc/smfp.fdi.in | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/noarch/etc/smfp.fdi.in b/noarch/etc/smfp.fdi.in new file mode 100755 index 0000000..eb34295 --- /dev/null +++ b/noarch/etc/smfp.fdi.in @@ -0,0 +1,30 @@ +<?xml version='1.0' encoding='UTF-8'?> +<deviceinfo version='0.2'> +$(tab 1)<device> +$(tab 1)<!-- /dev/bus/usb/00?/? --> +$(tab 2) <match key='info.bus' string='usb_device'> +$(tab 3) <match key='usb_device.vendor_id' int='0x$VID'> + $(for pid in $PIDS ; do \ + echo "$(tab2 4)<match key='usb_device.product_id' int='0x$pid'>";\ + echo "$(tab2 5)<append key='info.capabilities' type='strlist'>access_control</append>";\ + echo "$(tab2 5)<merge key='access_control.file' type='copy_property'>linux.device_file</merge>" ;\ + echo "$(tab2 5)<merge key='access_control.type' type='string'>scanner</merge>" ;\ + echo "$(tab2 4)</match>";\ + done) +$(tab 3) </match> +$(tab 2) </match> +$(tab 2) <!-- /dev/usb/lp0 --> +$(tab 2) <match key='info.bus' string='usb'> +$(tab 3) <match key='@info.parent:usb.vendor_id' int='0x$VID'> + $(for pid in $PIDS ; do \ + echo "$(tab2 4)<match key='@info.parent:usb.product_id' int='0x$pid'>";\ + echo "$(tab2 5)<append key='info.capabilities' type='strlist'>access_control</append>";\ + echo "$(tab2 5)<merge key='access_control.file' type='copy_property'>linux.device_file</merge>";\ + echo "$(tab2 5)<merge key='access_control.type' type='string'>scanner</merge>";\ + echo "$(tab2 4)</match>";\ + done) +$(tab 3) </match> +$(tab 2) </match> +$(tab 1)</device> +</deviceinfo> + |