From 219d5657e8f814f4f62808d275d069b97b751803 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Tue, 16 Feb 2010 14:06:56 +0000 Subject: [PATCH] Add devd(8) rules to change USB devices permissions when they are plugged-in on FreeBSD. --- pn53x.conf | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pn53x.conf diff --git a/pn53x.conf b/pn53x.conf new file mode 100644 index 0000000..ecc7a65 --- /dev/null +++ b/pn53x.conf @@ -0,0 +1,22 @@ +# 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"; +};