chiark / gitweb /
remove example rules and put the dev.d stuff into the run_directory folder
[elogind.git] / etc / udev / udev.rules.devfs
index c9154e46f3f410475d5a71382d9eafde29643815..b7b2c4e12d49e42b03f6aadf0fad35649d64c83e 100644 (file)
@@ -1,3 +1,9 @@
+# The use of these rules is not recommended or supported.
+# In a world where devices can come and go at any time, the devfs scheme
+# of simple device enumeration does not help _anything_. Just forget about
+# it. Use custom rules to name your device or look at the persistent device
+# naming scheme, which is implemented for disks and add your subsystem.
+
 # There are a number of modifiers that are allowed to be used in some of the
 # fields.  See the udev man page for a full description of them.
 
@@ -78,3 +84,28 @@ KERNEL="hiddev*",    NAME="usb/%k"
 KERNEL="auer*",                NAME="usb/%k"
 KERNEL="legousbtower*",        NAME="usb/%k"
 KERNEL="dabusb*",      NAME="usb/%k"
+BUS="usb", KERNEL="lp[0-9]*",  NAME="usb/%k"
+
+# netlink devices
+KERNEL="route",                NAME="netlink/%k"
+KERNEL="skip",         NAME="netlink/%k"
+KERNEL="usersock",     NAME="netlink/%k"
+KERNEL="fwmonitor",    NAME="netlink/%k"
+KERNEL="tcpdiag",      NAME="netlink/%k"
+KERNEL="nflog",                NAME="netlink/%k"
+KERNEL="xfrm",         NAME="netlink/%k"
+KERNEL="arpd",         NAME="netlink/%k"
+KERNEL="route6",       NAME="netlink/%k"
+KERNEL="ip6_fw",       NAME="netlink/%k"
+KERNEL="dnrtmsg",      NAME="netlink/%k"
+KERNEL="tap*",         NAME="netlink/%k"
+
+# CAPI devices
+KERNEL="capi",         NAME="capi20", SYMLINK="isdn/capi20"
+KERNEL="capi*",                NAME="capi/%n"
+
+# Network devices
+KERNEL="tun",          NAME="net/%k"
+
+# raw devices
+KERNEL="raw[0-9]*",     NAME="raw/%k"