1 # do not edit this file, it will be overwritten on update
3 SUBSYSTEM!="tty", GOTO="ipfire_hwrng_end"
4 KERNEL!="ttyACM[0-9]*", GOTO="ipfire_hwrng_end"
6 SUBSYSTEMS=="usb-serial", ENV{.ID_PORT}="$attr{port_number}"
8 IMPORT{builtin}="usb_id"
9 ENV{ID_SERIAL}=="", GOTO="ipfire_hwrng_end"
10 SUBSYSTEMS=="usb", ENV{ID_USB_INTERFACE_NUM}="$attr{bInterfaceNumber}"
11 ENV{ID_USB_INTERFACE_NUM}=="", GOTO="ipfire_hwrng_end"
13 ATTRS{manufacturer}=="IPFire.org", ATTRS{product}=="Random Number Generator*", ENV{.ID_PORT}=="", SYMLINK+="hwrngtty" RUN+="/bin/stty raw -echo -ixoff -F /dev/hwrngtty 115200" RUN+="/etc/rc.d/init.d/rngd udev-event"
15 LABEL="ipfire_hwrng_end"
16 ACTION=="add|remove", KERNEL=="hw_random", RUN+="/etc/rc.d/init.d/rngd udev-event"