mirror of
https://github.com/systemd/systemd.git
synced 2025-02-15 09:57:39 +03:00
add /dev/rtc symlink if new rtc drivers are used
This commit is contained in:
parent
9d1f93803f
commit
89e0a02226
@ -88,7 +88,8 @@ KERNEL=="microcode", NAME="cpu/microcode", MODE="0600"
|
|||||||
|
|
||||||
# miscellaneous
|
# miscellaneous
|
||||||
KERNEL=="fuse", MODE="0666"
|
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=="auer[0-9]*" NAME="usb/%k"
|
||||||
KERNEL=="hw_random", NAME="hwrng", SYMLINK+="%k"
|
KERNEL=="hw_random", NAME="hwrng", SYMLINK+="%k"
|
||||||
KERNEL=="mmtimer", MODE="0644"
|
KERNEL=="mmtimer", MODE="0644"
|
||||||
|
@ -133,7 +133,7 @@ static int node_symlink(const char *node, const char *slink)
|
|||||||
stats.st_rdev == stats2.st_rdev) {
|
stats.st_rdev == stats2.st_rdev) {
|
||||||
info("replace device node '%s' with symlink to our node '%s'", slink, node);
|
info("replace device node '%s' with symlink to our node '%s'", slink, node);
|
||||||
} else {
|
} 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;
|
goto exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user