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:
5ac7a25
)
path_id: fix bashism
author
Marco d'Itri
<md@Linux.IT>
Tue, 9 May 2006 16:24:43 +0000
(18:24 +0200)
committer
Kay Sievers
<kay.sievers@suse.de>
Tue, 9 May 2006 16:24:43 +0000
(18:24 +0200)
extras/path_id/path_id
patch
|
blob
|
history
diff --git
a/extras/path_id/path_id
b/extras/path_id/path_id
index 913c4909f774aeacfe18dd8ee390c0a10bf3e927..4941b88a452c73541dee747036013f94183e88f8 100644
(file)
--- a/
extras/path_id/path_id
+++ b/
extras/path_id/path_id
@@
-356,7
+356,7
@@
handle_device () {
subsys="`pwd -P`"
cd "$OPWD"
subsys="${subsys##*/}"
- if [ "$subsys" =
=
"block" ]; then
+ if [ "$subsys" = "block" ]; then
# parent is "block", it's a partition, move one up
full_sysfs_path="${full_sysfs_path%/*}"
fi
@@
-438,7
+438,7
@@
handle_device () {
;;
esac
done
- if [ "$TYPE" =
=
"scsi_tape" ] ; then
+ if [ "$TYPE" = "scsi_tape" ] ; then
devname=${full_sysfs_path##*/}
rewind="${devname%%st*}"
mode="${devname##*st}"