chiark / gitweb /
Fix libsysfs issue with relying on the detach_state file to be
[elogind.git] / etc / udev / udev.rules.devfs
index 1a5242563342efa2b932885b40efdb051fd293b5..867f95029c2e4092822bb109da5893815878ec3e 100644 (file)
@@ -2,10 +2,7 @@
 # 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 +73,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"