chiark / gitweb /
connect /sys and /dev with /sys/dev/{block,char}/<maj>:<min> and /dev/{block,char...
authorKay Sievers <kay.sievers@vrfy.org>
Mon, 6 Oct 2008 22:18:55 +0000 (00:18 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 6 Oct 2008 22:18:55 +0000 (00:18 +0200)
rules/rules.d/50-udev-default.rules

index 6eeb541..b41718c 100644 (file)
@@ -1,5 +1,8 @@
 # do not edit this file, it will be overwritten on update
 
+SUBSYSTEM=="block", SYMLINK+="block/%M:%m"
+SUBSYSTEM!="block", SYMLINK+="char/%M:%m"
+
 KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660", OPTIONS+="last_rule"
 KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660", OPTIONS+="last_rule"
 KERNEL=="ptmx",                        GROUP="tty", MODE="0666", OPTIONS+="last_rule"