blob: eb3429516a5240dad54a223863b198908345cba8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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>
|