2017-01-25 16:36:40 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2018-01-02 14:44:48 -07:00
|
|
|
rootdir=$(readlink -f $(dirname $0))/..
|
|
|
|
source "$rootdir/scripts/common.sh"
|
|
|
|
|
|
|
|
bdfs=$(iter_pci_class_code 01 08 02)
|
2017-01-25 16:36:40 -07:00
|
|
|
|
|
|
|
echo "[Nvme]"
|
|
|
|
i=0
|
|
|
|
for bdf in $bdfs; do
|
2017-03-01 13:35:59 -07:00
|
|
|
echo " TransportID \"trtype:PCIe traddr:$bdf\" Nvme$i"
|
2017-01-25 16:36:40 -07:00
|
|
|
let i=i+1
|
|
|
|
done
|