diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-09-10 00:59:07 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-09-10 00:59:07 +0200 |
commit | b1ac36ff5e3756cefc79967a26280056da31bf6f (patch) | |
tree | 16866a7bd48e7f2de7b0e405a5eae7c180b8fbed /extras/path_id | |
parent | 8aab4ce40b821d7b759b98bb97afcd3e0b7c80d8 (diff) |
path_id: fix for stacked class devices
Diffstat (limited to 'extras/path_id')
-rwxr-xr-x | extras/path_id/path_id | 6 |
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`" |