path_id: fix for stacked class devices

This commit is contained in:
Kay Sievers
2007-09-10 00:59:07 +02:00
parent 8aab4ce40b
commit b1ac36ff5e

View File

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