X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=extras%2Fpath_id%2Fpath_id;h=7f0d53a1808181e48dff13891769d383d33c89b3;hb=b12a1fb1c6073c0679e80f515fe97cb21fa88e65;hp=3f8efd63ac3dc8ac6e4423e8042cdd7880cb37d0;hpb=0c4a805bccbc52e48f972a87f83007fdb0ffe19e;p=elogind.git diff --git a/extras/path_id/path_id b/extras/path_id/path_id old mode 100755 new mode 100644 index 3f8efd63a..7f0d53a18 --- a/extras/path_id/path_id +++ b/extras/path_id/path_id @@ -232,7 +232,7 @@ handle_sas () { sas_phy_path="${sas_phy_path%%/target*}" sas_phy_id="${sas_phy_path%%/*}" sas_rphy_id="${sas_phy_path##*/}" - sas_phy_dev="${sas_host_path}/${sas_phy_id}/sas_phy:${sas_phy_id}" + sas_phy_dev="/sys/class/sas_phy/${sas_phy_id}" if [ -e "$sas_phy_dev/sas_address" ]; then read phy_address < $sas_phy_dev/sas_address read phy_port < $sas_phy_dev/port_identifier @@ -244,7 +244,7 @@ handle_sas () { return fi sas_phy_address="$phy_address:$phy_port:$phy_id" - sas_rphy_dev="${sas_host_path}/${sas_phy_path}/sas_rphy:${sas_rphy_id}" + sas_rphy_dev="/sys/class/sas_device/${sas_rphy_id}" if [ -e "$sas_rphy_dev/sas_address" ]; then read rphy_address < $sas_rphy_dev/sas_address read rphy_id < $sas_rphy_dev/phy_identifier