X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=extras%2Fpath_id%2Fpath_id;h=a3a627e40794b00060af690a69656be3fab15b33;hb=9e5920842b0b414e78b04ddd40fb4cf29b0d855c;hp=57879b5a9a0a1e4b21f842845e4d6c0f5d59677f;hpb=596714857b0c6b2779e861e4069d63f0fa27aa28;p=elogind.git diff --git a/extras/path_id/path_id b/extras/path_id/path_id index 57879b5a9..a3a627e40 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`"