aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-07-23 20:26:45 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-07-23 20:30:52 +0200
commit8f2f1b1262aabe9a1ef8f25078c796de433bae3a (patch)
tree17f2696bf965c8f7206f8f8bfb0e0b7f8b89bbd4 /rules
parent0dcf1ce1f76325e88be8b1c6cc356a2123c9a757 (diff)
downloadudev-8f2f1b1262aabe9a1ef8f25078c796de433bae3a.tar.gz
rules: serial - fix path_id call
Diffstat (limited to 'rules')
-rw-r--r--rules/rules.d/60-persistent-serial.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/rules.d/60-persistent-serial.rules b/rules/rules.d/60-persistent-serial.rules
index 00727d77..351b3856 100644
--- a/rules/rules.d/60-persistent-serial.rules
+++ b/rules/rules.d/60-persistent-serial.rules
@@ -6,7 +6,7 @@ KERNEL!="ttyUSB[0-9]*|ttyACM[0-9]*", GOTO="persistent_serial_end"
SUBSYSTEMS=="usb-serial", ENV{ID_PORT}="$attr{port_number}"
-IMPORT="path_id"
+IMPORT="path_id %p"
ENV{ID_PATH}=="?*", ENV{ID_PORT}=="", SYMLINK+="serial/by-path/$env{ID_PATH}"
ENV{ID_PATH}=="?*", ENV{ID_PORT}=="?*", SYMLINK+="serial/by-path/$env{ID_PATH}-port$env{ID_PORT}"