chiark / gitweb /
rules: rtc - create rtc compat link only for cmos type rtc
authorKay Sievers <kay.sievers@vrfy.org>
Sun, 21 Dec 2008 12:48:55 +0000 (13:48 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Sun, 21 Dec 2008 12:48:55 +0000 (13:48 +0100)
rules/rules.d/50-udev-default.rules

index 4576799..da8437e 100644 (file)
@@ -98,8 +98,7 @@ KERNEL=="microcode",          NAME="cpu/microcode", MODE="0600"
 
 # miscellaneous
 KERNEL=="fuse",                        MODE="0666"
-KERNEL=="rtc|rtc0",            MODE="0644"
-KERNEL=="rtc0",                        SYMLINK+="rtc"
+SUBSYSTEM=="rtc", DRIVERS=="rtc_cmos", SYMLINK+="rtc"
 KERNEL=="auer[0-9]*",          NAME="usb/%k"
 KERNEL=="hw_random",           NAME="hwrng"
 KERNEL=="mmtimer",             MODE="0644"