contrib: move udev and devd files into contrib/

This commit is contained in:
Romuald Conty 2011-12-09 16:13:32 +00:00
parent 1e66caecd6
commit 2ac8df2b28
7 changed files with 11 additions and 4 deletions

View file

@ -1,4 +1,7 @@
SUBDIRS = win32
SUBDIRS = \
devd \
udev \
win32
EXTRA_DIST = \
windows.h

2
contrib/devd/Makefile.am Normal file
View file

@ -0,0 +1,2 @@
EXTRA_DIST = \
pn53x.conf

36
contrib/devd/pn53x.conf Normal file
View file

@ -0,0 +1,36 @@
# FreeBSD devd(8) rules for PN531 & PN533 devices.
attach 110 {
match "vendor" "0x04cc";
match "product" "(0x0531|0x2533)";
action "/usr/bin/chgrp nfc /dev/$device-name";
action "/bin/chmod g+rw /dev/$device-name";
};
attach 110 {
match "vendor" "0x04e6";
match "product" "0x5591";
action "/usr/bin/chgrp nfc /dev/$device-name";
action "/bin/chmod g+rw /dev/$device-name";
};
attach 110 {
match "vendor" "0x054c";
match "product" "0x0193";
action "/usr/bin/chgrp nfc /dev/$device-name";
action "/bin/chmod g+rw /dev/$device-name";
};
attach 110 {
match "vendor" "0x1fd3";
match "product" "0x0608";
action "/usr/bin/chgrp nfc /dev/$device-name";
action "/bin/chmod g+rw /dev/$device-name";
};
attach 110 {
match "vendor" "0x054c";
match "product" "0x02e1";
action "/usr/bin/chgrp nfc /dev/$device-name";
action "/bin/chmod g+rw /dev/$device-name";
};

View file

@ -0,0 +1,17 @@
# udev rules file for PN531 and PN533 devices (for udev 0.98 version)
# to be installed in /etc/udev/rules.d
SUBSYSTEM!="usb|usb_device", GOTO="pn53x_rules_end"
ACTION!="add", GOTO="pn53x_rules_end"
# PN531
ATTRS{idVendor}=="04cc", ATTRS{idProduct}=="0531", MODE="0664", GROUP="plugdev"
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0193", MODE="0664", GROUP="plugdev"
# PN533
ATTRS{idVendor}=="04cc", ATTRS{idProduct}=="2533", MODE="0664", GROUP="plugdev"
ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="5591", MODE="0664", GROUP="plugdev"
ATTRS{idVendor}=="1fd3", ATTRS{idProduct}=="0608", MODE="0664", GROUP="plugdev"
ATTRS{idVendor}=="054c", ATTRS{idProduct}=="02e1", MODE="0664", GROUP="plugdev"
LABEL="pn53x_rules_end"

2
contrib/udev/Makefile.am Normal file
View file

@ -0,0 +1,2 @@
EXTRA_DIST = \
42-pn53x.rules