diff options
author | Kay Sievers <kay@vrfy.org> | 2012-10-25 21:34:46 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-10-25 21:44:33 +0200 |
commit | f3b9526171eceb885c8365c46e11aa27e8cdad13 (patch) | |
tree | 9fab7aeac5c268cad60c2ce462616b70fb57bcc1 /rules/50-udev-default.rules | |
parent | 15ce372b75a48f73cc3b0ca435b9d9df3ce0ea49 (diff) |
rules: call hwdb for all devices with a 'modalias'
Diffstat (limited to 'rules/50-udev-default.rules')
-rw-r--r-- | rules/50-udev-default.rules | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rules/50-udev-default.rules b/rules/50-udev-default.rules index 758538caeb..fc52fd17f5 100644 --- a/rules/50-udev-default.rules +++ b/rules/50-udev-default.rules @@ -43,7 +43,7 @@ SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", GROUP="video" # 'libusb' device nodes SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664" -SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb" +SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=usb" # printer KERNEL=="parport[0-9]*", GROUP="lp" @@ -86,3 +86,5 @@ KERNEL=="fuse", ACTION=="add", MODE="0666", OPTIONS+="static_node=fuse" SUBSYSTEM=="rtc", ATTR{hctosys}=="1", MODE="0644", SYMLINK+="rtc" SUBSYSTEM=="firmware", ACTION=="add", IMPORT{builtin}="firmware" + +ENV{MODALIAS}!="", IMPORT{builtin}="hwdb --subsystem=$env{SUBSYSTEM}" |