]> git.ipfire.org Git - ipfire-2.x.git/blob - config/udev/90-hwrng.rules
freeradius: Update to version 3.0.18
[ipfire-2.x.git] / config / udev / 90-hwrng.rules
1 # do not edit this file, it will be overwritten on update
2
3 SUBSYSTEM!="tty", GOTO="ipfire_hwrng_end"
4 KERNEL!="ttyACM[0-9]*", GOTO="ipfire_hwrng_end"
5
6 SUBSYSTEMS=="usb-serial", ENV{.ID_PORT}="$attr{port_number}"
7
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"
12
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"
14
15 LABEL="ipfire_hwrng_end"
16 ACTION=="add|remove", KERNEL=="hw_random", RUN+="/etc/rc.d/init.d/rngd udev-event"