path_id: fix bashism

This commit is contained in:
Marco d'Itri 2006-05-09 18:24:43 +02:00 committed by Kay Sievers
parent 5ac7a25e85
commit d7fea966f1

View File

@ -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}"