* app-crypt/ekeyd: Add
[portage-overlay.git] / app-crypt / ekeyd / files / 90-ekeyd.rules
1 # Entropy key udev rules
2 #
3 # Centos/RHEL 6 rules for udev version 147
4
5 # These rules create devices under /dev/entropykey/<serialnumber>
6 #
7 # Copyright 2011 Simtec Electronics
8 #
9 # For licence terms refer to the COPYING file distributed with the source.
10
11 ACTION=="add", SUBSYSTEM=="tty", ENV{ID_VENDOR_ID}=="20df", ENV{ID_MODEL_ID}=="0001", SYMLINK+="entropykey/$env{ID_SERIAL_SHORT}"
12
13 ACTION=="add", SUBSYSTEM=="tty", ENV{ID_VENDOR_ID}=="20df", ENV{ID_MODEL_ID}=="0001", RUN+="/usr/sbin/ekeydctl add $env{DEVNAME} $env{ID_SERIAL_SHORT}"
14
15 ACTION=="remove", SUBSYSTEM=="tty", ENV{ID_VENDOR_ID}=="20df", ENV{ID_MODEL_ID}=="0001", RUN+="/usr/sbin/ekeydctl remove $env{ID_SERIAL_SHORT}"
16