chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8aab4ce
)
path_id: fix for stacked class devices
author
Kay Sievers
<kay.sievers@vrfy.org>
Sun, 9 Sep 2007 22:59:07 +0000
(
00:59
+0200)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Sun, 9 Sep 2007 22:59:07 +0000
(
00:59
+0200)
extras/path_id/path_id
patch
|
blob
|
history
diff --git
a/extras/path_id/path_id
b/extras/path_id/path_id
index 57879b5a9a0a1e4b21f842845e4d6c0f5d59677f..a3a627e40794b00060af690a69656be3fab15b33 100755
(executable)
--- 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`"