]> err.no Git - systemd/commitdiff
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 633e2e78318d801ec7e2f29fbac649f5c66aa70c..854809a7d3638f8676f6db5a61c262d5aea32529 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 fcd52d0e45d5d9b861a353267bfbf5c56d64f64c..25eed86935978af1d6e9141eacdd50edf3ea6eb3 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;
                                }
                        }