From: Kay Sievers Date: Thu, 30 Aug 2007 13:03:21 +0000 (+0200) Subject: add /dev/rtc symlink if new rtc drivers are used X-Git-Tag: 174~1829 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=89e0a02226cbadf6a58c4d234e31c7111eed20bc add /dev/rtc symlink if new rtc drivers are used --- diff --git a/etc/udev/rules.d/50-udev-default.rules b/etc/udev/rules.d/50-udev-default.rules index 633e2e783..854809a7d 100644 --- a/etc/udev/rules.d/50-udev-default.rules +++ b/etc/udev/rules.d/50-udev-default.rules @@ -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" diff --git a/udev_node.c b/udev_node.c index fcd52d0e4..25eed8693 100644 --- a/udev_node.c +++ b/udev_node.c @@ -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; } }