summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xextras/path_id/path_id6
1 files changed, 5 insertions, 1 deletions
diff --git a/extras/path_id/path_id b/extras/path_id/path_id
index 7a37700289..0fad30cfb2 100755
--- a/extras/path_id/path_id
+++ b/extras/path_id/path_id
@@ -95,7 +95,11 @@ handle_pci () {
;;
esac
done
- d="pci-$pci_id-$d"
+ if [ "$d" ]; then
+ d="pci-$pci_id-$d"
+ else
+ d="pci-$pci_id"
+ fi
D="$host_dev_path"
RESULT=0
}