summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-09-10 00:59:07 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-09-10 00:59:07 +0200
commitb1ac36ff5e3756cefc79967a26280056da31bf6f (patch)
tree16866a7bd48e7f2de7b0e405a5eae7c180b8fbed
parent8aab4ce40b821d7b759b98bb97afcd3e0b7c80d8 (diff)
path_id: fix for stacked class devices
-rwxr-xr-xextras/path_id/path_id6
1 files changed, 5 insertions, 1 deletions
diff --git a/extras/path_id/path_id b/extras/path_id/path_id
index 57879b5a9a..a3a627e407 100755
--- a/extras/path_id/path_id
+++ b/extras/path_id/path_id
@@ -456,7 +456,11 @@ handle_device () {
return
fi
fi
- cd $full_sysfs_path/device
+ if [ -L $full_sysfs_path/device/device ]; then
+ cd $full_sysfs_path/device/device
+ else
+ cd $full_sysfs_path/device
+ fi
;;
esac
full_sysfs_device_path="`pwd -P`"