1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-11-01 00:51:08 +03:00

path_id: suppress trailing '-' like 'ID_PATH=pci-0000:05:01.0-'

This commit is contained in:
Kay Sievers 2008-06-26 13:25:31 +02:00
parent 7c389ce8a0
commit dad1f0924b

View File

@ -95,7 +95,11 @@ handle_pci () {
;;
esac
done
if [ "$d" ]; then
d="pci-$pci_id-$d"
else
d="pci-$pci_id"
fi
D="$host_dev_path"
RESULT=0
}