chiark / gitweb /
add /dev/rtc symlink if new rtc drivers are used
authorKay Sievers <kay.sievers@vrfy.org>
Thu, 30 Aug 2007 13:03:21 +0000 (15:03 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Thu, 30 Aug 2007 13:03:21 +0000 (15:03 +0200)
etc/udev/rules.d/50-udev-default.rules
udev_node.c

index 633e2e7..854809a 100644 (file)
@@ -88,7 +88,8 @@ KERNEL=="microcode",          NAME="cpu/microcode", MODE="0600"
 
 # miscellaneous
 KERNEL=="fuse",                        MODE="0666"
-KERNEL=="rtc",                 MODE="0644"
+KERNEL=="rtc|rtc0",            MODE="0644"
+KERNEL=="rtc0",                        SYMLINK+="rtc"
 KERNEL=="auer[0-9]*"           NAME="usb/%k"
 KERNEL=="hw_random",           NAME="hwrng", SYMLINK+="%k"
 KERNEL=="mmtimer",             MODE="0644"
index fcd52d0..25eed86 100644 (file)
@@ -133,7 +133,7 @@ static int node_symlink(const char *node, const char *slink)
                                    stats.st_rdev == stats2.st_rdev) {
                                        info("replace device node '%s' with symlink to our node '%s'", slink, node);
                                } else {
-                                       err("device node '%s' already exists, link '%s' will not overwrite it", node, slink);
+                                       err("device node '%s' already exists, link to '%s' will not overwrite it", slink, node);
                                        goto exit;
                                }
                        }