From: Kay Sievers Date: Sun, 9 Sep 2007 22:59:07 +0000 (+0200) Subject: path_id: fix for stacked class devices X-Git-Tag: 174~1825 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1ac36ff5e3756cefc79967a26280056da31bf6f;p=systemd path_id: fix for stacked class devices --- diff --git a/extras/path_id/path_id b/extras/path_id/path_id index 57879b5a..a3a627e4 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`"