udev

Tips#

apk add eudev
service udev start
rc-update add udev sysinit
udevadm monitor
# 设备信息
udevadm info -p /devices/pci0000:00/0000:00:14.0/usb1/1-1
udevadm info -q path -n input/mouse1
udevadm test /devices/pci0000:00/0000:00:14.0/usb1/1-1
udevadm control --reload-rules

FAQ#

unable to create temporary db file '/run/udev/data/c189:39.tmp': Permission denied#

  • udevadm test 出现
  • 使用 sudo 即可