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:
parent
7c389ce8a0
commit
dad1f0924b
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user