chiark / gitweb /
remove example rules and put the dev.d stuff into the run_directory folder
[elogind.git] / etc / udev / udev.rules.devfs
index 1a5242563342efa2b932885b40efdb051fd293b5..b7b2c4e12d49e42b03f6aadf0fad35649d64c83e 100644 (file)
@@ -1,11 +1,14 @@
+# 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.
 
 # ide block devices
-BUS="ide", id="0.0", NAME="ide/host0/bus0/target0/lun0/%D"
-BUS="ide", id="0.1", NAME="ide/host0/bus0/target1/lun0/%D"
-BUS="ide", id="1.0", NAME="ide/host0/bus1/target0/lun0/%D"
-BUS="ide", id="1.1", NAME="ide/host0/bus1/target1/lun0/%D"
+BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}"
 
 # md block devices
 KERNEL="md[0-9]*", NAME="md/%n"
@@ -76,3 +79,33 @@ KERNEL="event*", NAME="input/%k"
 KERNEL="js*",    NAME="input/%k"
 KERNEL="ts*",   NAME="input/%k"
 
+# USB devices
+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"