chiark / gitweb /
[PATCH] add devfs like tty rules as an example in the default config file.
[elogind.git] / udev.config
index 3eb688a3a0b5fcc4ae2a730452a36a6ca5ace7e9..44fdb2561d387e24a8a942434d4e67e562a0a1c8 100644 (file)
@@ -7,6 +7,9 @@
 # %b - the bus id for the device
 # %c - the return value for the CALLOUT program (note, this doesn't work within
 #      the PROGRAM field for the obvious reason.)
+# %D - use the devfs style disk name for this device.
+#      For partitions, this will result in 'part%n'
+#      If this is not a partition, it will result in 'disk'
 #
 
 # Looking for scsi bus id 42:0:0:1
@@ -38,3 +41,9 @@ TOPOLOGY, BUS="usb", place="2.4", NAME="mouse2"
 REPLACE, KERNEL="ttyUSB1", NAME="visor"
 REPLACE, KERNEL="ttyUSB0", NAME="pl2303"
 
+# a devfs like way to name some tty devices
+#REPLACE, KERNEL="tty", NAME="tty"
+#REPLACE, KERNEL="ttyS*", NAME="tts/%n"
+#REPLACE, KERNEL="tty*", NAME="vc/%n"
+
+