From 8f2f1b1262aabe9a1ef8f25078c796de433bae3a Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 23 Jul 2009 20:26:45 +0200 Subject: [PATCH] rules: serial - fix path_id call --- rules/rules.d/60-persistent-serial.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" -- 2.39.5