You type (copy and paste) the lines into Terminal.app one line at a time and press enter to execute the command.
First, setup boot-args. You might need to do this from the recovery partition if you don't have SIP disabled.
Code:
sudo nvram boot-args="debug=0x144"
Then restart the computer.
Then do these commands:
Code:
git clone https://gist.github.com/e3cd4ff08aae06279134969c98ca3ab7.git pcitree
git clone https://github.com/joevt/pciutils.git
cd pciutils
make
sudo make install
grep -q /usr/local/sbin /etc/paths || sudo sed -e $'1i\\\n/usr/local/sbin\\\n' -i "" /etc/paths
Then close the terminal window, open a new terminal window and do these commands:
Code:
sudo update-pciids
cd pcitree
chmod +x pcitree.sh
sudo ./pcitree.sh